mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
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)
This commit is contained in:
parent
b1b1cba4e2
commit
5ab0b7e626
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user