From: Timo Sirainen Date: Sat, 26 Oct 2013 15:59:03 +0000 (+0300) Subject: lib-http: Recent DNS change caused lib-http to access uninitialized memory. X-Git-Tag: 2.2.7~44 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=81558ac5d0b1a23861870e084fa52cbc951ceda6;p=thirdparty%2Fdovecot%2Fcore.git lib-http: Recent DNS change caused lib-http to access uninitialized memory. --- diff --git a/src/lib-http/http-client-host.c b/src/lib-http/http-client-host.c index 2d8c18b65c..427e4b2e90 100644 --- a/src/lib-http/http-client-host.c +++ b/src/lib-http/http-client-host.c @@ -403,7 +403,7 @@ static void http_client_host_lookup "Performing asynchronous DNS lookup"); (void)dns_client_lookup(client->set.dns_client, host->name, http_client_host_dns_callback, host, &host->dns_lookup); - } else if (dns_set.dns_client_socket_path != NULL) { + } else if (client->set.dns_client_socket_path != NULL) { http_client_host_debug(host, "Performing asynchronous DNS lookup"); memset(&dns_set, 0, sizeof(dns_set));