[dovecot-cvs] dovecot/src/master mail-process.c,1.83,1.84

cras at dovecot.org cras at dovecot.org
Tue Feb 14 19:43:07 EET 2006


Update of /var/lib/cvs/dovecot/src/master
In directory talvi:/tmp/cvs-serv28016/master

Modified Files:
	mail-process.c 
Log Message:
Check that we don't pass around key=value pairs with empty keys.



Index: mail-process.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/mail-process.c,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -d -r1.83 -r1.84
--- mail-process.c	2 Feb 2006 21:29:15 -0000	1.83
+++ mail-process.c	14 Feb 2006 17:43:05 -0000	1.84
@@ -499,6 +499,11 @@
 	/* add extra args. uppercase key value. */
 	args = array_get(&extra_args, &count);
 	for (i = 0; i < count; i++) {
+		if (*args[i] == '=') {
+			/* Should be caught by dovecot-auth already */
+			i_fatal("Userdb returned data with empty key (%s)",
+				args[i]);
+		}
 		p = strchr(args[i], '=');
 		if (p == NULL) {
 			/* boolean */



More information about the dovecot-cvs mailing list