changeset 7276:e8b5e5da1c09 HEAD

Blocking passdbs that returned some userdb_* fields returned also an extra userdb_<username> field.
author Timo Sirainen <tss@iki.fi>
date Thu, 21 Feb 2008 15:36:08 +0200
parents 6127a0501e72
children e0debdcd2e10
files src/auth/auth-worker-client.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 {
 	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);
 }