diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-11-10 00:46:57 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-11-10 00:46:57 +0000 |
commit | b61a87b26ca3ccbf97f298fa347620bc529678ef (patch) | |
tree | 1e9514b09a4e011808cf3abf1938c39204ad89bf /crypto/asn1 | |
parent | 2c6b141931ecd70137c9f77f0e65713620affa02 (diff) |
check new_der for NULL too
Diffstat (limited to 'crypto/asn1')
-rw-r--r-- | crypto/asn1/asn1_gen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/asn1/asn1_gen.c b/crypto/asn1/asn1_gen.c index b066dc9eae..213a8e986c 100644 --- a/crypto/asn1/asn1_gen.c +++ b/crypto/asn1/asn1_gen.c @@ -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 */ |