From: Stephan Bosch Date: Mon, 2 Jul 2018 21:59:50 +0000 (+0200) Subject: lib-http: client: Reset ips count to zero before DNS lookup. X-Git-Tag: 2.3.9~1595 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ba9ac079c0d7298807087fb7b794700e0a0c8ef5;p=thirdparty%2Fdovecot%2Fcore.git lib-http: client: Reset ips count to zero before DNS lookup. --- diff --git a/src/lib-http/http-client-host.c b/src/lib-http/http-client-host.c index 427573ee82..1d2d5ac81a 100644 --- a/src/lib-http/http-client-host.c +++ b/src/lib-http/http-client-host.c @@ -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,