Check PKCS7 structures in PKCS#12 files are of type data.
[openssl.git] / crypto / pkcs12 / p12_p8e.c
index 7a17b31..3d47956 100644 (file)
@@ -65,7 +65,7 @@ X509_SIG *PKCS8_encrypt(int pbe_nid, const EVP_CIPHER *cipher,
                         unsigned char *salt, int saltlen, int iter,
                                                PKCS8_PRIV_KEY_INFO *p8inf)
 {
-       X509_SIG *p8;
+       X509_SIG *p8 = NULL;
        X509_ALGOR *pbe;
 
        if (!(p8 = X509_SIG_new())) {