check new_der for NULL too

This commit is contained in:
Dr. Stephen Henson 2009-11-10 00:46:57 +00:00
parent 2c6b141931
commit b61a87b26c

View file

@ -227,6 +227,8 @@ ASN1_TYPE *ASN1_generate_v3(char *str, X509V3_CTX *cnf)
/* Allocate buffer for new encoding */
new_der = OPENSSL_malloc(len);
if (!new_der)
goto err;
/* Generate tagged encoding */