dovecot-2.2: auth: Don't crash when userdb hasn't been specified...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Dec 12 17:59:38 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/eaadd1e1fea2
changeset: 17060:eaadd1e1fea2
user: Timo Sirainen <tss at iki.fi>
date: Thu Dec 12 17:59:28 2013 +0200
description:
auth: Don't crash when userdb hasn't been specified at all.
diffstat:
src/auth/auth-settings.c | 1 +
src/auth/auth.c | 7 ++++++-
2 files changed, 7 insertions(+), 1 deletions(-)
diffs (28 lines):
diff -r fb157c79473e -r eaadd1e1fea2 src/auth/auth-settings.c
--- a/src/auth/auth-settings.c Thu Dec 12 16:37:37 2013 +0200
+++ b/src/auth/auth-settings.c Thu Dec 12 17:59:28 2013 +0200
@@ -172,6 +172,7 @@
};
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 -r fb157c79473e -r eaadd1e1fea2 src/auth/auth.c
--- a/src/auth/auth.c Thu Dec 12 16:37:37 2013 +0200
+++ b/src/auth/auth.c Thu Dec 12 17:59:28 2013 +0200
@@ -13,7 +13,12 @@
.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;
More information about the dovecot-cvs
mailing list