dovecot-2.0: lib-settings: Crashfix for broken settings under st...
dovecot at dovecot.org
dovecot at dovecot.org
Mon May 9 19:26:03 EEST 2011
details: http://hg.dovecot.org/dovecot-2.0/rev/74248914cf40
changeset: 12780:74248914cf40
user: Timo Sirainen <tss at iki.fi>
date: Mon May 09 19:25:44 2011 +0300
description:
lib-settings: Crashfix for broken settings under strlist.
diffstat:
src/lib-settings/settings-parser.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 3ada82147977 -r 74248914cf40 src/lib-settings/settings-parser.c
--- a/src/lib-settings/settings-parser.c Mon May 09 19:08:43 2011 +0300
+++ b/src/lib-settings/settings-parser.c Mon May 09 19:25:44 2011 +0300
@@ -696,7 +696,8 @@
if (parent_def == NULL) {
/* we'll get here with e.g. "plugin/a/b=val".
not sure if we should ever do anything here.. */
- if (strcmp(parent_link->full_key, parent_key) != 0)
+ if (parent_link->full_key == NULL ||
+ strcmp(parent_link->full_key, parent_key) != 0)
return FALSE;
} else {
if (parent_def->type != SET_STRLIST)
More information about the dovecot-cvs
mailing list