diff options
author | FdaSilvaYY <fdasilvayy@gmail.com> | 2016-06-04 00:14:52 +0200 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-06-18 16:30:24 -0400 |
commit | 5ab0b7e6263ab0ff666133cefbf1e4d1f91e867d (patch) | |
tree | 3039f6cd20af9130699c24124d039b452f5338e1 | |
parent | b1b1cba4e2ae76bc3b8390842c8482dc0b3358ca (diff) |
Missing NULL check on OBJ_dup result in x509_name_canon
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1168)
-rw-r--r-- | crypto/x509/x_name.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/x509/x_name.c b/crypto/x509/x_name.c index 5c624cbd17..d5b12f1421 100644 --- a/crypto/x509/x_name.c +++ b/crypto/x509/x_name.c @@ -322,6 +322,8 @@ static int x509_name_canon(X509_NAME *a) if (tmpentry == NULL) goto err; tmpentry->object = OBJ_dup(entry->object); + if (tmpentry->object == NULL) + goto err; if (!asn1_string_canon(tmpentry->value, entry->value)) goto err; if (!sk_X509_NAME_ENTRY_push(entries, tmpentry)) |