]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveconf: Crashfix
authorTimo Sirainen <tss@iki.fi>
Fri, 11 Sep 2009 00:09:16 +0000 (20:09 -0400)
committerTimo Sirainen <tss@iki.fi>
Fri, 11 Sep 2009 00:09:16 +0000 (20:09 -0400)
--HG--
branch : HEAD

src/config/doveconf.c

index 04c24f4a63dee1b3e7e5d9e70cbfc8c3cda501c7..798ade0b5947440e9819e3f195352f286659c1f3 100644 (file)
@@ -137,7 +137,8 @@ static void config_connection_request_human(struct ostream *output,
                        }
                }
                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, '=');