changeset 15490:0c9a4af8eaf8

lib-http: Host entries were added to hash table using wrong hostname pointer.
author Timo Sirainen <tss@iki.fi>
date Wed, 19 Dec 2012 14:39:55 +0200
parents 4eebc8959849
children a1b814081f0c
files src/lib-http/http-client-host.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-http/http-client-host.c	Tue Dec 18 18:56:59 2012 +0200
+++ b/src/lib-http/http-client-host.c	Wed Dec 19 14:39:55 2012 +0200
@@ -274,7 +274,7 @@
 		host->name = i_strdup(hostname);
 		i_array_init(&host->ports, 4);
 
-		hash_table_insert(client->hosts, hostname, host);
+		hash_table_insert(client->hosts, host->name, host);
 
 		http_client_host_debug(host, "Host created");
 	}