From: Stephan Bosch Date: Tue, 22 Sep 2020 18:00:17 +0000 (+0200) Subject: lib-http: http-client-host - Do not prematurely reset ips_count to zero. X-Git-Tag: 2.3.13~154 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=778811a3e69fbbeea52ac80e87eeb01305c6c732;p=thirdparty%2Fdovecot%2Fcore.git lib-http: http-client-host - Do not prematurely reset ips_count to zero. It causes problems with existing connection attempts. Panic was: Panic: file http-client-queue.c: line 215 (http_client_queue_is_last_connect_ip): assertion failed: (queue->ips_connect_idx < ips_count) --- diff --git a/src/lib-http/http-client-host.c b/src/lib-http/http-client-host.c index 4d3af70606..27126eebdb 100644 --- a/src/lib-http/http-client-host.c +++ b/src/lib-http/http-client-host.c @@ -146,8 +146,6 @@ http_client_host_shared_lookup(struct http_client_host_shared *hshared) i_assert(!hshared->explicit_ip); i_assert(hshared->dns_lookup == NULL); - hshared->ips_count = 0; - if (cctx->dns_client != NULL) { e_debug(hshared->event, "Performing asynchronous DNS lookup"); (void)dns_client_lookup(cctx->dns_client, hshared->name,