From: Daniel Stenberg Date: Mon, 7 Mar 2022 07:40:47 +0000 (+0100) Subject: wolfssl: fix compiler error without IPv6 X-Git-Tag: curl-7_83_0~177 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=471d5f44c5189bd78f8839ce8ac1b4b14f4b7d61;p=thirdparty%2Fcurl.git wolfssl: fix compiler error without IPv6 Reported-by: Joseph Chen Fixes #8550 Closes #8552 --- diff --git a/lib/vtls/wolfssl.c b/lib/vtls/wolfssl.c index eae5568309..09ec739c00 100644 --- a/lib/vtls/wolfssl.c +++ b/lib/vtls/wolfssl.c @@ -462,9 +462,9 @@ wolfssl_connect_step1(struct Curl_easy *data, struct connectdata *conn, 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;