[dovecot-cvs] dovecot/src/auth auth-request.c,1.86,1.87
tss at dovecot.org
tss at dovecot.org
Sat Feb 17 11:21:38 UTC 2007
Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv19167
Modified Files:
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.86
retrieving revision 1.87
diff -u -d -r1.86 -r1.87
--- auth-request.c 16 Feb 2007 17:23:01 -0000 1.86
+++ auth-request.c 17 Feb 2007 11:21:36 -0000 1.87
@@ -988,6 +988,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