aboutsummaryrefslogtreecommitdiff
path: root/openssl/crypto/asn1/x_name.c
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/crypto/asn1/x_name.c')
-rw-r--r--openssl/crypto/asn1/x_name.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openssl/crypto/asn1/x_name.c b/openssl/crypto/asn1/x_name.c
index d7c231869..22da57040 100644
--- a/openssl/crypto/asn1/x_name.c
+++ b/openssl/crypto/asn1/x_name.c
@@ -350,6 +350,8 @@ static int x509_name_canon(X509_NAME *a)
set = entry->set;
}
tmpentry = X509_NAME_ENTRY_new();
+ if (!tmpentry)
+ goto err;
tmpentry->object = OBJ_dup(entry->object);
if (!asn1_string_canon(tmpentry->value, entry->value))
goto err;