[dovecot-cvs] dovecot/src/plugins/acl acl-backend-vfile.c, 1.17, 1.18

tss at dovecot.org tss at dovecot.org
Wed Apr 11 22:31:34 EEST 2007


Update of /var/lib/cvs/dovecot/src/plugins/acl
In directory talvi:/tmp/cvs-serv4375

Modified Files:
	acl-backend-vfile.c 
Log Message:
Don't break if empty data was given



Index: acl-backend-vfile.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/acl/acl-backend-vfile.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- acl-backend-vfile.c	11 Apr 2007 17:40:18 -0000	1.17
+++ acl-backend-vfile.c	11 Apr 2007 19:31:29 -0000	1.18
@@ -85,7 +85,9 @@
 	backend->global_dir = p_strdup_empty(_backend->pool, *tmp);
 	backend->cache_secs = ACL_VFILE_DEFAULT_CACHE_SECS;
 
-	while (*++tmp != NULL) {
+	if (*tmp != NULL)
+		tmp++;
+	for (; *tmp != NULL; tmp++) {
 		if (strncmp(*tmp, "cache_secs=", 11) == 0)
 			backend->cache_secs = atoi(*tmp + 11);
 		else {



More information about the dovecot-cvs mailing list