check new_der for NULL too
This commit is contained in:
parent
2c6b141931
commit
b61a87b26c
@ -227,6 +227,8 @@ ASN1_TYPE *ASN1_generate_v3(char *str, X509V3_CTX *cnf)
|
|||||||
/* Allocate buffer for new encoding */
|
/* Allocate buffer for new encoding */
|
||||||
|
|
||||||
new_der = OPENSSL_malloc(len);
|
new_der = OPENSSL_malloc(len);
|
||||||
|
if (!new_der)
|
||||||
|
goto err;
|
||||||
|
|
||||||
/* Generate tagged encoding */
|
/* Generate tagged encoding */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user