diff options
Diffstat (limited to 'src/lib/libcrypto/x509v3/v3_utl.c')
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_utl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_utl.c b/src/lib/libcrypto/x509v3/v3_utl.c index c3328d668d..5b064f8eb2 100644 --- a/src/lib/libcrypto/x509v3/v3_utl.c +++ b/src/lib/libcrypto/x509v3/v3_utl.c | |||
@@ -422,7 +422,7 @@ unsigned char *string_to_hex(const char *str, long *len) | |||
422 | return hexbuf; | 422 | return hexbuf; |
423 | 423 | ||
424 | err: | 424 | err: |
425 | if(hexbuf) free(hexbuf); | 425 | free(hexbuf); |
426 | X509V3err(X509V3_F_STRING_TO_HEX,ERR_R_MALLOC_FAILURE); | 426 | X509V3err(X509V3_F_STRING_TO_HEX,ERR_R_MALLOC_FAILURE); |
427 | return NULL; | 427 | return NULL; |
428 | 428 | ||
@@ -623,8 +623,7 @@ ASN1_OCTET_STRING *a2i_IPADDRESS_NC(const char *ipasc) | |||
623 | return ret; | 623 | return ret; |
624 | 624 | ||
625 | err: | 625 | err: |
626 | if (iptmp) | 626 | free(iptmp); |
627 | free(iptmp); | ||
628 | if (ret) | 627 | if (ret) |
629 | ASN1_OCTET_STRING_free(ret); | 628 | ASN1_OCTET_STRING_free(ret); |
630 | return NULL; | 629 | return NULL; |