dovecot-2.2: auth: Removed assert-checks, allowing plugins to se...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Feb 16 18:57:45 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/5751963a3be8
changeset: 15797:5751963a3be8
user: Timo Sirainen <tss at iki.fi>
date: Thu Jan 31 00:27:17 2013 +0200
description:
auth: Removed assert-checks, allowing plugins to set skip_password_check.
diffstat:
src/auth/auth-request.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (24 lines):
diff -r 57eb9a6ac6c0 -r 5751963a3be8 src/auth/auth-request.c
--- a/src/auth/auth-request.c Wed Jan 30 23:45:10 2013 +0200
+++ b/src/auth/auth-request.c Thu Jan 31 00:27:17 2013 +0200
@@ -291,10 +291,9 @@
request->no_login = TRUE;
else if (strcmp(key, "successful") == 0)
request->successful = TRUE;
- else if (strcmp(key, "skip_password_check") == 0) {
- i_assert(request->master_user != NULL);
+ else if (strcmp(key, "skip_password_check") == 0)
request->skip_password_check = TRUE;
- } else if (strcmp(key, "mech") == 0)
+ else if (strcmp(key, "mech") == 0)
request->mech_name = p_strdup(request->pool, value);
else
return FALSE;
@@ -1705,7 +1704,6 @@
if (request->skip_password_check) {
/* currently this can happen only with master logins */
- i_assert(request->master_user != NULL);
return 1;
}
More information about the dovecot-cvs
mailing list