]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: http-client-host - Do not prematurely reset ips_count to zero.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Tue, 22 Sep 2020 18:00:17 +0000 (20:00 +0200)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Wed, 7 Oct 2020 11:42:11 +0000 (11:42 +0000)
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)

src/lib-http/http-client-host.c

index 4d3af70606fd89129193f163582682628bc916fe..27126eebdb5942ec16e312d2abc1408b26b8a582 100644 (file)
@@ -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,