dovecot-2.2: lib-imap: Fixed crash in IDLE for non-TCP connections.

dovecot at dovecot.org dovecot at dovecot.org
Thu May 14 18:46:51 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/4c4eff229426
changeset: 18692:4c4eff229426
user:      Timo Sirainen <tss at iki.fi>
date:      Thu May 14 21:44:50 2015 +0300
description:
lib-imap: Fixed crash in IDLE for non-TCP connections.

diffstat:

 src/lib-imap/imap-keepalive.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r d09429bdb340 -r 4c4eff229426 src/lib-imap/imap-keepalive.c
--- a/src/lib-imap/imap-keepalive.c	Thu May 14 14:02:13 2015 +0300
+++ b/src/lib-imap/imap-keepalive.c	Thu May 14 21:44:50 2015 +0300
@@ -42,7 +42,7 @@
 {
 	unsigned int client_hash;
 
-	client_hash = imap_remote_ip_is_usable(ip) ?
+	client_hash = ip != NULL && imap_remote_ip_is_usable(ip) ?
 		net_ip_hash(ip) : crc32_str(username);
 	interval_secs -= (time(NULL) + client_hash) % interval_secs;
 	return interval_secs * 1000;


More information about the dovecot-cvs mailing list