X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fx509v3%2Fv3_addr.c;h=b9be9995e16938f175a534466db9c30f112f708e;hp=958089609670ff32f90b9e3d7d1835e0e447c1d2;hb=ea46f5e0e5fbd21ac76876b57f5631c8b4263623;hpb=10ca15f3fa50726a838fc8a61026dea2c303d218 diff --git a/crypto/x509v3/v3_addr.c b/crypto/x509v3/v3_addr.c index 9580896096..b9be9995e1 100644 --- a/crypto/x509v3/v3_addr.c +++ b/crypto/x509v3/v3_addr.c @@ -66,6 +66,7 @@ #include #include #include +#include #include #ifndef OPENSSL_NO_RFC3779 @@ -934,7 +935,7 @@ static void *v2i_IPAddrBlocks(struct v3_ext_method *method, length = length_from_afi(afi); /* - * Handle SAFI, if any, and strdup() so we can null-terminate + * Handle SAFI, if any, and BUF_strdup() so we can null-terminate * the other input values. */ if (safi != NULL) { @@ -946,9 +947,9 @@ static void *v2i_IPAddrBlocks(struct v3_ext_method *method, goto err; } t += strspn(t, " \t"); - s = strdup(t); + s = BUF_strdup(t); } else { - s = strdup(val->value); + s = BUF_strdup(val->value); } if (s == NULL) { X509V3err(X509V3_F_V2I_IPADDRBLOCKS, ERR_R_MALLOC_FAILURE);