]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: Remove fallback to net_gethostbyname as not supported by upcoming changes.
authorsergey.kitov <sergey.kitov@open-xchange.com>
Wed, 5 Feb 2025 15:45:39 +0000 (17:45 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 19 May 2025 08:07:56 +0000 (08:07 +0000)
src/lib-http/http-client-host.c

index 07d724ade995644b92c36707e6f18416beb75f68..d17bdb278d4d186536b307ef6a0ac3a17fbe159e 100644 (file)
@@ -144,7 +144,6 @@ http_client_host_shared_lookup(struct http_client_host_shared *hshared)
 {
        struct http_client_context *cctx = hshared->cctx;
        struct dns_client_settings dns_set;
-       int ret;
 
        i_assert(!hshared->explicit_ip);
        i_assert(hshared->dns_lookup == NULL);
@@ -168,17 +167,8 @@ http_client_host_shared_lookup(struct http_client_host_shared *hshared)
                                 hshared, &hshared->dns_lookup);
                io_loop_set_current(prev_ioloop);
        } else {
-               struct ip_addr *ips;
-               unsigned int ips_count;
-
-               ret = net_gethostbyname(hshared->name, &ips, &ips_count);
-               if (ret != 0) {
-                       http_client_host_shared_lookup_failure(
-                               hshared, net_gethosterror(ret));
-                       return;
-               }
-
-               http_client_host_shared_lookup_success(hshared, ips, ips_count);
+               /* FIXME: fully removed in the following commits */
+               i_unreached();
        }
 }