]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: Recent DNS change caused lib-http to access uninitialized memory.
authorTimo Sirainen <tss@iki.fi>
Sat, 26 Oct 2013 15:59:03 +0000 (18:59 +0300)
committerTimo Sirainen <tss@iki.fi>
Sat, 26 Oct 2013 15:59:03 +0000 (18:59 +0300)
src/lib-http/http-client-host.c

index 2d8c18b65c875e2b1cf3664305168d6572a01585..427e4b2e90439880e4052d3e76eae83aacc82e54 100644 (file)
@@ -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));