dovecot-1.1: Blocking passdbs that returned some userdb_* fields...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Feb 21 15:34:44 EET 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/e8b5e5da1c09
changeset: 7276:e8b5e5da1c09
user: Timo Sirainen <tss at iki.fi>
date: Thu Feb 21 15:36:08 2008 +0200
description:
Blocking passdbs that returned some userdb_* fields returned also an extra
userdb_<username> field.
diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
src/auth/auth-worker-client.c | 6 +++++-
diffs (16 lines):
diff -r 6127a0501e72 -r e8b5e5da1c09 src/auth/auth-worker-client.c
--- a/src/auth/auth-worker-client.c Thu Feb 21 15:26:22 2008 +0200
+++ b/src/auth/auth-worker-client.c Thu Feb 21 15:36:08 2008 +0200
@@ -75,7 +75,11 @@ static void add_userdb_replies(string_t
{
const char *const *tmp;
- for (tmp = t_strsplit(data, "\t"); *tmp != NULL; tmp++)
+ tmp = t_strsplit(data, "\t");
+ i_assert(*tmp != NULL);
+ /* first field is the user name */
+ tmp++;
+ for (; *tmp != NULL; tmp++)
str_printfa(str, "\tuserdb_%s", *tmp);
}
More information about the dovecot-cvs
mailing list