Merge pull request #17303 from CarlosDerSeher/feature_bt_agent
[feed/packages.git] / net / curl / patches / 0001-wolfssl-fix-compiler-error-without-IPv6.patch
1 From 471d5f44c5189bd78f8839ce8ac1b4b14f4b7d61 Mon Sep 17 00:00:00 2001
2 From: Daniel Stenberg <daniel@haxx.se>
3 Date: Mon, 7 Mar 2022 08:40:47 +0100
4 Subject: [PATCH] wolfssl: fix compiler error without IPv6
5
6 Reported-by: Joseph Chen
7 Fixes #8550
8 Closes #8552
9 ---
10 lib/vtls/wolfssl.c | 4 ++--
11 1 file changed, 2 insertions(+), 2 deletions(-)
12
13 --- a/lib/vtls/wolfssl.c
14 +++ b/lib/vtls/wolfssl.c
15 @@ -462,9 +462,9 @@ wolfssl_connect_step1(struct Curl_easy *
16 const char * const hostname = SSL_HOST_NAME();
17 size_t hostname_len = strlen(hostname);
18 if((hostname_len < USHRT_MAX) &&
19 - (0 == Curl_inet_pton(AF_INET, hostname, &addr4)) &&
20 + !Curl_inet_pton(AF_INET, hostname, &addr4)
21 #ifdef ENABLE_IPV6
22 - (0 == Curl_inet_pton(AF_INET6, hostname, &addr6))
23 + && !Curl_inet_pton(AF_INET6, hostname, &addr6)
24 #endif
25 ) {
26 size_t snilen;