Return an error in ASN1_TYPE_unpack_sequence if argument is NULL
[openssl.git] / crypto / asn1 / tasn_new.c
index 1b36ecc14997afae83ed204947ebe3d5b24cda9f..aeced95232df17f4180784762884d83e95e82585 100644 (file)
@@ -94,8 +94,6 @@ int ASN1_item_ex_new(ASN1_VALUE **pval, const ASN1_ITEM *it)
     else
         asn1_cb = 0;
 
-    *pval = NULL;
-
 #ifdef CRYPTO_MDEBUG
     if (it->sname)
         CRYPTO_push_info(it->sname);