From: job Date: Thu, 2 Sep 2021 21:00:07 +0000 (+0000) Subject: Change the OPENSSL_strdup() to strdup() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5f135508b547ee8a63e7a6351acf78d0030eddda;p=openbsd Change the OPENSSL_strdup() to strdup() OK beck@ tb@ --- 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);