X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/fa7225c82381bac4432a6edf16f53b5370238d85..7e6b461318c8a779d91381531435a68ee4e8b6ed:/OSX/libsecurity_apple_csp/lib/FEEKeys.cpp diff --git a/OSX/libsecurity_apple_csp/lib/FEEKeys.cpp b/OSX/libsecurity_apple_csp/lib/FEEKeys.cpp index 7ce18248..e906bdf8 100644 --- a/OSX/libsecurity_apple_csp/lib/FEEKeys.cpp +++ b/OSX/libsecurity_apple_csp/lib/FEEKeys.cpp @@ -68,7 +68,7 @@ void CryptKit::FEEBinaryKey::generateKeyBlob( const CssmKey *paramKey, /* optional, unused here */ CSSM_KEYATTR_FLAGS &attrFlags) /* IN/OUT */ { - unsigned char *keyBlob; + unsigned char *keyBlob = NULL; unsigned len = 0; feeReturn frtn = FR_Internal; bool freeTheKey = false; @@ -190,6 +190,7 @@ void CryptKit::FEEBinaryKey::generateKeyBlob( break; default: /* not reached */ + badFormat = true; break; }