dovecot-2.0: master: Allow protocols value to be empty (= same a...

dovecot at dovecot.org dovecot at dovecot.org
Fri Mar 4 20:45:21 EET 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/a6382acebe7e
changeset: 12651:a6382acebe7e
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Mar 04 20:45:17 2011 +0200
description:
master: Allow protocols value to be empty (= same as "none")

diffstat:

 src/master/master-settings.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (18 lines):

diff -r 539da23bff31 -r a6382acebe7e src/master/master-settings.c
--- a/src/master/master-settings.c	Fri Mar 04 20:37:03 2011 +0200
+++ b/src/master/master-settings.c	Fri Mar 04 20:45:17 2011 +0200
@@ -457,12 +457,8 @@
 		service_set_login_dump_core(service);
 	}
 	set->protocols_split = p_strsplit_spaces(pool, set->protocols, " ");
-	if (set->protocols_split[0] == NULL) {
-		*error_r = "No protocols defined, "
-			"if you don't want any use protocols=none";
-		return FALSE;
-	}
-	if (strcmp(set->protocols_split[0], "none") == 0 &&
+	if (set->protocols_split[0] != NULL &&
+	    strcmp(set->protocols_split[0], "none") == 0 &&
 	    set->protocols_split[1] == NULL)
 		set->protocols_split[0] = NULL;
 


More information about the dovecot-cvs mailing list