From 226a3f9de976a4fdc59d61c3d0be5d92558007ee Mon Sep 17 00:00:00 2001 From: Job Snijders Date: Thu, 2 Sep 2021 21:00:08 +0000 Subject: Change the OPENSSL_strdup() to strdup() OK beck@ tb@ --- lib/libcrypto/x509/x509_addr.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib') 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 #include +#include #include #include @@ -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); -- cgit v1.2.3