dovecot-2.0: doveconf: Crashfix

dovecot at dovecot.org dovecot at dovecot.org
Fri Sep 11 03:09:25 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/9287d59dbf69
changeset: 9925:9287d59dbf69
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Sep 10 20:09:16 2009 -0400
description:
doveconf: Crashfix

diffstat:

1 file changed, 2 insertions(+), 1 deletion(-)
src/config/doveconf.c |    3 ++-

diffs (13 lines):

diff -r 281ea23515ce -r 9287d59dbf69 src/config/doveconf.c
--- a/src/config/doveconf.c	Thu Sep 10 19:13:19 2009 -0400
+++ b/src/config/doveconf.c	Thu Sep 10 20:09:16 2009 -0400
@@ -137,7 +137,8 @@ static void config_connection_request_hu
 			}
 		}
 		skip_len = prefix_idx == -1U ? 0 : strlen(prefixes[prefix_idx]);
-		i_assert(strncmp(prefixes[prefix_idx], strings[i], skip_len) == 0);
+		i_assert(skip_len == 0 ||
+			 strncmp(prefixes[prefix_idx], strings[i], skip_len) == 0);
 		o_stream_send(output, ident_str, indent*2);
 		key = strings[i] + skip_len;
 		value = strchr(key, '=');


More information about the dovecot-cvs mailing list