You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
870 B

  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. Reported-by: Joseph Chen
  6. Fixes #8550
  7. Closes #8552
  8. ---
  9. lib/vtls/wolfssl.c | 4 ++--
  10. 1 file changed, 2 insertions(+), 2 deletions(-)
  11. --- a/lib/vtls/wolfssl.c
  12. +++ b/lib/vtls/wolfssl.c
  13. @@ -462,9 +462,9 @@ wolfssl_connect_step1(struct Curl_easy *
  14. const char * const hostname = SSL_HOST_NAME();
  15. size_t hostname_len = strlen(hostname);
  16. if((hostname_len < USHRT_MAX) &&
  17. - (0 == Curl_inet_pton(AF_INET, hostname, &addr4)) &&
  18. + !Curl_inet_pton(AF_INET, hostname, &addr4)
  19. #ifdef ENABLE_IPV6
  20. - (0 == Curl_inet_pton(AF_INET6, hostname, &addr6))
  21. + && !Curl_inet_pton(AF_INET6, hostname, &addr6)
  22. #endif
  23. ) {
  24. size_t snilen;