Skip to content

Commit

Permalink
lib-http: client: Reset ips count to zero before DNS lookup.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanbosch authored and villesavolainen committed Feb 6, 2019
1 parent 2362161 commit e5f9dfa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib-http/http-client-host.c
Expand Up @@ -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,
Expand Down

0 comments on commit e5f9dfa

Please sign in to comment.