[dovecot-cvs] dovecot/src/master imap-process.c,1.12,1.13

cras at procontrol.fi cras at procontrol.fi
Mon Dec 16 16:51:05 EET 2002


Update of /home/cvs/dovecot/src/master
In directory danu:/tmp/cvs-serv16695

Modified Files:
	imap-process.c 
Log Message:
Don't crash with empty default_mail_env setting.



Index: imap-process.c
===================================================================
RCS file: /home/cvs/dovecot/src/master/imap-process.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- imap-process.c	12 Dec 2002 06:04:30 -0000	1.12
+++ imap-process.c	16 Dec 2002 14:51:03 -0000	1.13
@@ -162,7 +162,7 @@
 		env_put(t_strconcat(env[0], "=", env[1], NULL));
 	}
 
-	if (!found_mail) {
+	if (!found_mail && set_default_mail_env != NULL) {
 		const char *mail;
 
 		mail = expand_mail_env(set_default_mail_env, user, home);




More information about the dovecot-cvs mailing list