diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/asn1/x_x509.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/libcrypto/asn1/x_x509.c b/src/lib/libcrypto/asn1/x_x509.c index e93d97d2c4..7053bb87eb 100644 --- a/src/lib/libcrypto/asn1/x_x509.c +++ b/src/lib/libcrypto/asn1/x_x509.c | |||
@@ -105,8 +105,7 @@ x509_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg) | |||
105 | break; | 105 | break; |
106 | 106 | ||
107 | case ASN1_OP_D2I_POST: | 107 | case ASN1_OP_D2I_POST: |
108 | if (ret->name != NULL) | 108 | free(ret->name); |
109 | free(ret->name); | ||
110 | ret->name = X509_NAME_oneline(ret->cert_info->subject, NULL, 0); | 109 | ret->name = X509_NAME_oneline(ret->cert_info->subject, NULL, 0); |
111 | break; | 110 | break; |
112 | 111 | ||
@@ -123,8 +122,7 @@ x509_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg) | |||
123 | sk_IPAddressFamily_pop_free(ret->rfc3779_addr, IPAddressFamily_free); | 122 | sk_IPAddressFamily_pop_free(ret->rfc3779_addr, IPAddressFamily_free); |
124 | ASIdentifiers_free(ret->rfc3779_asid); | 123 | ASIdentifiers_free(ret->rfc3779_asid); |
125 | #endif | 124 | #endif |
126 | if (ret->name != NULL) | 125 | free(ret->name); |
127 | free(ret->name); | ||
128 | ret->name = NULL; | 126 | ret->name = NULL; |
129 | break; | 127 | break; |
130 | } | 128 | } |