]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: client: Reset ips count to zero before DNS lookup.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Mon, 2 Jul 2018 21:59:50 +0000 (23:59 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 8 Jul 2018 10:08:32 +0000 (10:08 +0000)
src/lib-http/http-client-host.c

index 427573ee823f8cd7b43d8e71c1fbaaa0daf96882..1d2d5ac81a8bdca17c917906a5f537c116990933 100644 (file)
@@ -133,6 +133,8 @@ static void http_client_host_shared_lookup
        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,