aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/asn1
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2001-03-05 11:09:43 +0000
committerBodo Möller <bodo@openssl.org>2001-03-05 11:09:43 +0000
commitbad4058574a110c972616e4b2f629a6268322eb3 (patch)
tree14c74c6c138d8495aeb8593ae1b5205885e05f3a /crypto/asn1
parentd8c2adae578d44b6c313e57bc971fa2825b9c399 (diff)
downloadopenssl-bad4058574a110c972616e4b2f629a6268322eb3.tar.gz
New option '-subj arg' for 'openssl req' and 'openssl ca'. This
sets the subject name for a new request or supersedes the subject name in a given request. Add options '-batch' and '-verbose' to 'openssl req'. Submitted by: Massimiliano Pala <madwolf@hackmasters.net> Reviewed by: Bodo Moeller
Diffstat (limited to 'crypto/asn1')
-rw-r--r--crypto/asn1/x_name.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/crypto/asn1/x_name.c b/crypto/asn1/x_name.c
index 34f4e4c3f6..9a111a3d05 100644
--- a/crypto/asn1/x_name.c
+++ b/crypto/asn1/x_name.c
@@ -119,8 +119,15 @@ static int x509_name_ex_new(ASN1_VALUE **val, const ASN1_ITEM *it)
ret->modified=1;
*val = (ASN1_VALUE *)ret;
return 1;
- memerr:
+
+ memerr:
ASN1err(ASN1_F_X509_NAME_NEW, ERR_R_MALLOC_FAILURE);
+ if (ret)
+ {
+ if (ret->entries)
+ sk_X509_NAME_ENTRY_free(ret->entries);
+ OPENSSL_free(ret);
+ }
return 0;
}