summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorjob <>2021-09-02 21:00:07 +0000
committerjob <>2021-09-02 21:00:07 +0000
commit30bbc07667d25cd385b854f20b76b4fbc5133b6c (patch)
tree6b45ae1d786be1a2a961374d2e8612e16db9e2c2 /src/lib
parent6f02b3fb25a858fb7b848aad6c10710c7a2fa050 (diff)
downloadopenbsd-30bbc07667d25cd385b854f20b76b4fbc5133b6c.tar.gz
openbsd-30bbc07667d25cd385b854f20b76b4fbc5133b6c.tar.bz2
openbsd-30bbc07667d25cd385b854f20b76b4fbc5133b6c.zip
Change the OPENSSL_strdup() to strdup()
OK beck@ tb@
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/x509/x509_addr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509/x509_addr.c b/src/lib/libcrypto/x509/x509_addr.c
index 78b4751ade..7a2e152c87 100644
--- a/src/lib/libcrypto/x509/x509_addr.c
+++ b/src/lib/libcrypto/x509/x509_addr.c
@@ -13,6 +13,7 @@
13 13
14#include <stdio.h> 14#include <stdio.h>
15#include <stdlib.h> 15#include <stdlib.h>
16#include <string.h>
16 17
17#include <openssl/asn1.h> 18#include <openssl/asn1.h>
18#include <openssl/asn1t.h> 19#include <openssl/asn1t.h>
@@ -1117,7 +1118,7 @@ static void *v2i_IPAddrBlocks(const struct v3_ext_method *method,
1117 length = length_from_afi(afi); 1118 length = length_from_afi(afi);
1118 1119
1119 /* 1120 /*
1120 * Handle SAFI, if any, and OPENSSL_strdup() so we can null-terminate 1121 * Handle SAFI, if any, and strdup() so we can null-terminate
1121 * the other input values. 1122 * the other input values.
1122 */ 1123 */
1123 if (safi != NULL) { 1124 if (safi != NULL) {
@@ -1129,9 +1130,9 @@ static void *v2i_IPAddrBlocks(const struct v3_ext_method *method,
1129 goto err; 1130 goto err;
1130 } 1131 }
1131 t += strspn(t, " \t"); 1132 t += strspn(t, " \t");
1132 s = OPENSSL_strdup(t); 1133 s = strdup(t);
1133 } else { 1134 } else {
1134 s = OPENSSL_strdup(val->value); 1135 s = strdup(val->value);
1135 } 1136 }
1136 if (s == NULL) { 1137 if (s == NULL) {
1137 X509V3error(ERR_R_MALLOC_FAILURE); 1138 X509V3error(ERR_R_MALLOC_FAILURE);