]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
show error if config is missing auth section
authorTimo Sirainen <tss@iki.fi>
Mon, 10 May 2004 01:20:49 +0000 (04:20 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 10 May 2004 01:20:49 +0000 (04:20 +0300)
--HG--
branch : HEAD

src/master/master-settings.c

index 6f8b5773945aa22bf11a4170329bb2bdb12c9e20..495738a9d070078107fec4b96471d440f41f5a39 100644 (file)
@@ -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;