[dovecot-cvs] dovecot/src/master main.c, 1.80, 1.81 master-settings.c, 1.126, 1.127

cras at dovecot.org cras at dovecot.org
Thu Jun 8 21:52:44 EEST 2006


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

Modified Files:
	main.c master-settings.c 
Log Message:
If ssl_listen setting was empty in config file, startup failed with "Can't
resolve address" error.



Index: main.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/main.c,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -d -r1.80 -r1.81
--- main.c	3 May 2006 22:58:55 -0000	1.80
+++ main.c	8 Jun 2006 18:52:40 -0000	1.81
@@ -246,7 +246,7 @@
 	const char *p;
 	int ret, ips_count;
 
-	if (name == NULL) {
+	if (*name == '\0') {
                 /* defaults to "*" or "[::]" */
 		ip->family = 0;
 		return;

Index: master-settings.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/master-settings.c,v
retrieving revision 1.126
retrieving revision 1.127
diff -u -d -r1.126 -r1.127
--- master-settings.c	8 Jun 2006 16:58:25 -0000	1.126
+++ master-settings.c	8 Jun 2006 18:52:40 -0000	1.127
@@ -268,7 +268,7 @@
 	/* general */
 	MEMBER(protocols) "imap imaps",
 	MEMBER(listen) "*",
-	MEMBER(ssl_listen) NULL,
+	MEMBER(ssl_listen) "",
 
 	MEMBER(ssl_disable) FALSE,
 	MEMBER(ssl_ca_file) NULL,



More information about the dovecot-cvs mailing list