check new_der for NULL too
This commit is contained in:
parent
2c6b141931
commit
b61a87b26c
1 changed files with 2 additions and 0 deletions
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in a new issue