dovecot-2.2: lib-http: Crashfix for previous change.

dovecot at dovecot.org dovecot at dovecot.org
Thu Apr 4 17:40:35 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/41c10ddda867
changeset: 16160:41c10ddda867
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Apr 04 17:40:30 2013 +0300
description:
lib-http: Crashfix for previous change.

diffstat:

 src/lib-http/http-client-peer.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r f4bac0352464 -r 41c10ddda867 src/lib-http/http-client-peer.c
--- a/src/lib-http/http-client-peer.c	Thu Apr 04 17:39:17 2013 +0300
+++ b/src/lib-http/http-client-peer.c	Thu Apr 04 17:40:30 2013 +0300
@@ -44,7 +44,7 @@
 (const struct http_client_peer_addr *peer)
 {
 	return net_ip_hash(&peer->ip) + peer->port +
-		str_hash(peer->https_name);
+		(peer->https_name == NULL ? 0 : str_hash(peer->https_name));
 }
 
 int http_client_peer_addr_cmp


More information about the dovecot-cvs mailing list