]> git.ipfire.org Git - thirdparty/curl.git/commit
hostip: make more functions return CURLcode
authorDaniel Stenberg <daniel@haxx.se>
Mon, 24 Nov 2025 13:00:09 +0000 (14:00 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 25 Nov 2025 08:13:34 +0000 (09:13 +0100)
commitce06fe7771052549ff430c86173b2eaca91f8a9c
tree447a245809b6e4c93e8f3cbc2e67e14f014f7033
parenta075d1c0d8684c0151cebf50b5cb64be6505c59d
hostip: make more functions return CURLcode

- Curl_async_getaddrinfo() always returned NULL so it was pointless.
  Return proper curlcode instead to distinguish between errors. Same for
  Curl_doh().
- simplify the IP address handling
- make Curl_str2addr() function return CURLcode

Closes #19669
lib/asyn-ares.c
lib/asyn-thrdd.c
lib/asyn.h
lib/curl_addrinfo.c
lib/curl_addrinfo.h
lib/doh.c
lib/doh.h
lib/hostip.c
tests/libtest/lib655.c