From: Timo Sirainen Date: Thu, 12 Dec 2013 15:59:28 +0000 (+0200) Subject: auth: Don't crash when userdb hasn't been specified at all. X-Git-Tag: 2.2.10~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74fb6b5a156c5a61bb6ec827089bb142a10547dd;p=thirdparty%2Fdovecot%2Fcore.git auth: Don't crash when userdb hasn't been specified at all. --- diff --git a/src/auth/auth-settings.c b/src/auth/auth-settings.c index 10abdac10f..7a5c38d12b 100644 --- a/src/auth/auth-settings.c +++ b/src/auth/auth-settings.c @@ -172,6 +172,7 @@ static const struct setting_define auth_userdb_setting_defines[] = { }; static const struct auth_userdb_settings auth_userdb_default_settings = { + /* NOTE: when adding fields, update also auth.c:userdb_dummy_set */ .driver = "", .args = "", .default_fields = "", diff --git a/src/auth/auth.c b/src/auth/auth.c index aab94e3c26..884ed29b49 100644 --- a/src/auth/auth.c +++ b/src/auth/auth.c @@ -13,7 +13,12 @@ struct auth_userdb_settings userdb_dummy_set = { .driver = "static", .args = "", .default_fields = "", - .override_fields = "" + .override_fields = "", + + .skip = "never", + .result_success = "return-ok", + .result_failure = "continue", + .result_internalfail = "continue" }; static ARRAY(struct auth *) auths;