dovecot-2.2-pigeonhole: Fixed doveconf crash caused by previous ...

pigeonhole at rename-it.nl pigeonhole at rename-it.nl
Fri Apr 12 21:32:31 EEST 2013


details:   http://hg.rename-it.nl/dovecot-2.2-pigeonhole/rev/70f0b7140939
changeset: 1751:70f0b7140939
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Fri Apr 12 20:25:02 2013 +0200
description:
Fixed doveconf crash caused by previous change.
Patch by Timo Sirainen.

diffstat:

 src/lib-sieve/sieve.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 9d38ca755000 -r 70f0b7140939 src/lib-sieve/sieve.c
--- a/src/lib-sieve/sieve.c	Thu Apr 11 22:40:07 2013 +0200
+++ b/src/lib-sieve/sieve.c	Fri Apr 12 20:25:02 2013 +0200
@@ -71,7 +71,8 @@
 		domain = env->domainname;
 	} else {
 		/* Fall back to parsing username localpart at domain */
-		domain = strchr(svinst->username, '@');
+		domain = svinst->username == NULL ? NULL :
+			strchr(svinst->username, '@');
 		if ( domain == NULL || *(domain+1) == '\0' ) {
 			/* Fall back to parsing hostname host.domain */
 			domain = ( env->hostname != NULL ? strchr(env->hostname, '.') : NULL );


More information about the dovecot-cvs mailing list