[dovecot-cvs] dovecot/src/auth auth-request.c,1.58.2.25,1.58.2.26

tss at dovecot.org tss at dovecot.org
Sat Feb 17 11:21:35 UTC 2007


Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv19171

Modified Files:
      Tag: branch_1_0
	auth-request.c 
Log Message:
auth_request_set_fields(): Don't crash with empty fields.



Index: auth-request.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-request.c,v
retrieving revision 1.58.2.25
retrieving revision 1.58.2.26
diff -u -d -r1.58.2.25 -r1.58.2.26
--- auth-request.c	16 Feb 2007 17:22:57 -0000	1.58.2.25
+++ auth-request.c	17 Feb 2007 11:21:33 -0000	1.58.2.26
@@ -960,6 +960,9 @@
 
 	t_push();
 	for (; *fields != NULL; fields++) {
+		if (**fields == '\0')
+			continue;
+
 		value = strchr(*fields, '=');
 		if (value == NULL) {
 			key = *fields;



More information about the dovecot-cvs mailing list