changeset 8403:88b15ab4b1d0 HEAD

If auth process count > 0 and auth sockets are defined, give an understandable error message.
author Timo Sirainen <tss@iki.fi>
date Sat, 15 Nov 2008 19:14:41 +0200
parents 244addad91a5
children d3cbd3494a8c
files src/master/master-settings.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/master/master-settings.c	Sat Nov 15 19:07:04 2008 +0200
+++ b/src/master/master-settings.c	Sat Nov 15 19:14:41 2008 +0200
@@ -478,6 +478,11 @@
 	}
 
 	for (s = auth->sockets; s != NULL; s = s->next) {
+		if (auth->count > 1 && strcmp(s->type, "listen") == 0) {
+			i_error("Currently auth process count must be 1 if "
+				"you're using auth socket listeners.");
+			return FALSE;
+		}
 		fix_base_path(auth->parent->defaults, &s->master.path);
 		fix_base_path(auth->parent->defaults, &s->client.path);
 	}