[dovecot-cvs] dovecot/src/master main.c,1.82,1.83

cras at dovecot.org cras at dovecot.org
Fri Jun 16 13:11:10 EEST 2006


Update of /var/lib/cvs/dovecot/src/master
In directory talvi:/tmp/cvs-serv29758

Modified Files:
	main.c 
Log Message:
We broke if ssl_listen wasn't explicitly set in config file. Patch by
Jonathan C. Broome



Index: main.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/main.c,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -d -r1.82 -r1.83
--- main.c	16 Jun 2006 09:43:14 -0000	1.82
+++ main.c	16 Jun 2006 10:11:08 -0000	1.83
@@ -355,7 +355,9 @@
 	resolve_ip(set->listen, &set->listen_ip, &set->listen_port);
 	resolve_ip(set->ssl_listen, &set->ssl_listen_ip, &set->ssl_listen_port);
 
-	if (set->ssl_listen_ip.family == 0 && set->ssl_listen == NULL)
+	/* if ssl_listen wasn't explicitly set in the config file,
+	   use the non-ssl IP settings for the ssl listener, too. */
+	if (set->ssl_listen_ip.family == 0 && *set->ssl_listen == '\0')
 		set->ssl_listen_ip = set->listen_ip;
 
 	/* register wanted protocols */



More information about the dovecot-cvs mailing list