dovecot-2.1: auth: Don't crash when setting valueless default/ov...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Jan 19 16:18:02 EET 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/234de9c2240f
changeset: 13954:234de9c2240f
user: Timo Sirainen <tss at iki.fi>
date: Thu Jan 19 16:15:03 2012 +0200
description:
auth: Don't crash when setting valueless default/override_fields to passdb.
diffstat:
src/auth/passdb-template.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r b86f7dd170c6 -r 234de9c2240f src/auth/passdb-template.c
--- a/src/auth/passdb-template.c Thu Jan 19 15:53:42 2012 +0200
+++ b/src/auth/passdb-template.c Thu Jan 19 16:15:03 2012 +0200
@@ -51,7 +51,7 @@
i_assert((count % 2) == 0);
for (i = 0; i < count; i += 2) {
if (args[i+1] == NULL)
- value = NULL;
+ value = "";
else {
str_truncate(str, 0);
var_expand(str, args[i+1], table);
More information about the dovecot-cvs
mailing list