dovecot: Blocking passdbs that returned some userdb_* fields ret...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Feb 21 15:34:40 EET 2008
details: http://hg.dovecot.org/dovecot/rev/c5a666d16a81
changeset: 7273:c5a666d16a81
user: Timo Sirainen <tss at iki.fi>
date: Thu Feb 21 15:36:05 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 00cff54ecfb4 -r c5a666d16a81 src/auth/auth-worker-client.c
--- a/src/auth/auth-worker-client.c Thu Feb 21 15:26:19 2008 +0200
+++ b/src/auth/auth-worker-client.c Thu Feb 21 15:36:05 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