From: Timo Sirainen Date: Mon, 10 May 2004 01:20:49 +0000 (+0300) Subject: show error if config is missing auth section X-Git-Tag: 1.1.alpha1~4113 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c04c1bbd4bd6394b384e234c47bc4a0497f47cb4;p=thirdparty%2Fdovecot%2Fcore.git show error if config is missing auth section --HG-- branch : HEAD --- diff --git a/src/master/master-settings.c b/src/master/master-settings.c index 6f8b577394..495738a9d0 100644 --- a/src/master/master-settings.c +++ b/src/master/master-settings.c @@ -850,7 +850,13 @@ int master_settings_read(const char *path) else prev->next = server->next; } else { - auth = server->auths; + auth = server->auths; + if (auth == NULL) { + i_error("Missing auth section for server %s", + server->name); + return FALSE; + } + for (; auth != NULL; auth = auth->next) { if (!auth_settings_verify(auth)) return FALSE;