diff options
| author | job <> | 2021-09-02 21:00:07 +0000 |
|---|---|---|
| committer | job <> | 2021-09-02 21:00:07 +0000 |
| commit | a2670edf74e6f572bd9f0baa6b9125f7e15c038a (patch) | |
| tree | 6b45ae1d786be1a2a961374d2e8612e16db9e2c2 /src/lib/libc | |
| parent | f307c245ca8e1e7ceff65bf1d7365d896293d825 (diff) | |
| download | openbsd-a2670edf74e6f572bd9f0baa6b9125f7e15c038a.tar.gz openbsd-a2670edf74e6f572bd9f0baa6b9125f7e15c038a.tar.bz2 openbsd-a2670edf74e6f572bd9f0baa6b9125f7e15c038a.zip | |
Change the OPENSSL_strdup() to strdup()
OK beck@ tb@
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/x509/x509_addr.c | 7 |
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); |
