aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.ca>2022-03-18 09:38:32 -0700
committerGitHub <noreply@github.com>2022-03-18 09:38:32 -0700
commitc4573e41a3e827f2fd89d6d4a8538b942b271753 (patch)
tree67c52f935a8d4d7b905643c803f2ef88485334cd /net
parent60ce07b9a1d5c7a53297f177f10af68f3304be9e (diff)
parent4eb08bacf309d336f03ad001194b9c8c1847ac2b (diff)
Merge pull request #18091 from c---/fixcurlwolfssl
curl: Fix compiling curl wolfSSL when IPv6 is disabled
Diffstat (limited to 'net')
-rw-r--r--net/curl/patches/0001-wolfssl-fix-compiler-error-without-IPv6.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/net/curl/patches/0001-wolfssl-fix-compiler-error-without-IPv6.patch b/net/curl/patches/0001-wolfssl-fix-compiler-error-without-IPv6.patch
new file mode 100644
index 000000000..5d68d1edc
--- /dev/null
+++ b/net/curl/patches/0001-wolfssl-fix-compiler-error-without-IPv6.patch
@@ -0,0 +1,26 @@
+From 471d5f44c5189bd78f8839ce8ac1b4b14f4b7d61 Mon Sep 17 00:00:00 2001
+From: Daniel Stenberg <daniel@haxx.se>
+Date: Mon, 7 Mar 2022 08:40:47 +0100
+Subject: [PATCH] wolfssl: fix compiler error without IPv6
+
+Reported-by: Joseph Chen
+Fixes #8550
+Closes #8552
+---
+ lib/vtls/wolfssl.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/lib/vtls/wolfssl.c
++++ b/lib/vtls/wolfssl.c
+@@ -462,9 +462,9 @@ wolfssl_connect_step1(struct Curl_easy *
+ const char * const hostname = SSL_HOST_NAME();
+ size_t hostname_len = strlen(hostname);
+ if((hostname_len < USHRT_MAX) &&
+- (0 == Curl_inet_pton(AF_INET, hostname, &addr4)) &&
++ !Curl_inet_pton(AF_INET, hostname, &addr4)
+ #ifdef ENABLE_IPV6
+- (0 == Curl_inet_pton(AF_INET6, hostname, &addr6))
++ && !Curl_inet_pton(AF_INET6, hostname, &addr6)
+ #endif
+ ) {
+ size_t snilen;