From: sergey.kitov Date: Wed, 5 Feb 2025 15:45:39 +0000 (+0200) Subject: lib-http: Remove fallback to net_gethostbyname as not supported by upcoming changes. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a65a04afb77de0c40eb418ab78d735d1396d05ba;p=thirdparty%2Fdovecot%2Fcore.git lib-http: Remove fallback to net_gethostbyname as not supported by upcoming changes. --- diff --git a/src/lib-http/http-client-host.c b/src/lib-http/http-client-host.c index 07d724ade9..d17bdb278d 100644 --- a/src/lib-http/http-client-host.c +++ b/src/lib-http/http-client-host.c @@ -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(); } }