diff options
author | FdaSilvaYY <fdasilvayy@gmail.com> | 2016-02-13 19:29:34 +0100 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-04-28 14:37:41 -0400 |
commit | 25a807bcb9509c6fccfbbd9d02119772ccb0f23e (patch) | |
tree | 66ebeec7f6213a64318b8f26fd064860832bf0e1 /crypto/x509/x_x509.c | |
parent | 8fdc99cb5dbf1a79b106cc635c82f59956e39108 (diff) |
Add checks on CRYPTO_new_ex_data return value
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/996)
Diffstat (limited to 'crypto/x509/x_x509.c')
-rw-r--r-- | crypto/x509/x_x509.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/x509/x_x509.c b/crypto/x509/x_x509.c index 22a7e5922d..11e758be80 100644 --- a/crypto/x509/x_x509.c +++ b/crypto/x509/x_x509.c @@ -99,7 +99,8 @@ static int x509_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, #endif ret->aux = NULL; ret->crldp = NULL; - CRYPTO_new_ex_data(CRYPTO_EX_INDEX_X509, ret, &ret->ex_data); + if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_X509, ret, &ret->ex_data)) + return 0; break; case ASN1_OP_FREE_POST: |