From c04c1bbd4bd6394b384e234c47bc4a0497f47cb4 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 10 May 2004 04:20:49 +0300 Subject: [PATCH] show error if config is missing auth section --HG-- branch : HEAD --- src/master/master-settings.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; -- 2.47.3