diff options
author | Job Snijders <job@cvs.openbsd.org> | 2021-09-02 21:00:08 +0000 |
---|---|---|
committer | Job Snijders <job@cvs.openbsd.org> | 2021-09-02 21:00:08 +0000 |
commit | 226a3f9de976a4fdc59d61c3d0be5d92558007ee (patch) | |
tree | a93bbccbea773f7e56ec32ded8a7785bd096d02f /lib | |
parent | a2f01dec2f3f9841d1b27d96b50e361ad2115077 (diff) |
Change the OPENSSL_strdup() to strdup()
OK beck@ tb@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcrypto/x509/x509_addr.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libcrypto/x509/x509_addr.c b/lib/libcrypto/x509/x509_addr.c index 78b4751ade9..7a2e152c873 100644 --- a/lib/libcrypto/x509/x509_addr.c +++ b/lib/libcrypto/x509/x509_addr.c @@ -13,6 +13,7 @@ #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <openssl/asn1.h> #include <openssl/asn1t.h> @@ -1117,7 +1118,7 @@ static void *v2i_IPAddrBlocks(const struct v3_ext_method *method, length = length_from_afi(afi); /* - * Handle SAFI, if any, and OPENSSL_strdup() so we can null-terminate + * Handle SAFI, if any, and strdup() so we can null-terminate * the other input values. */ if (safi != NULL) { @@ -1129,9 +1130,9 @@ static void *v2i_IPAddrBlocks(const struct v3_ext_method *method, goto err; } t += strspn(t, " \t"); - s = OPENSSL_strdup(t); + s = strdup(t); } else { - s = OPENSSL_strdup(val->value); + s = strdup(val->value); } if (s == NULL) { X509V3error(ERR_R_MALLOC_FAILURE); |