diff options
author | Ben Laurie <ben@openssl.org> | 1999-01-07 19:15:59 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 1999-01-07 19:15:59 +0000 |
commit | e03ddfae7ea7c27193d3f7c0eaa1d01704647d77 (patch) | |
tree | 7cf2e8444b222a3a52c4735e0415916bb81c4494 /crypto/asn1/x_name.c | |
parent | 6fa89f94c4452be54577eb071891d77c9e2abe16 (diff) |
Accept NULL in *_free.
Diffstat (limited to 'crypto/asn1/x_name.c')
-rw-r--r-- | crypto/asn1/x_name.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/asn1/x_name.c b/crypto/asn1/x_name.c index 3b8bc5191f..3af14c8e6c 100644 --- a/crypto/asn1/x_name.c +++ b/crypto/asn1/x_name.c @@ -263,6 +263,9 @@ X509_NAME_ENTRY *X509_NAME_ENTRY_new() void X509_NAME_free(a) X509_NAME *a; { + if(a == NULL) + return; + BUF_MEM_free(a->bytes); sk_pop_free(a->entries,X509_NAME_ENTRY_free); Free((char *)a); |