dovecot-2.2: auth: nodelay and nopassword fields weren't handled...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Mar 31 18:15:13 EEST 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/37cd62516b37
changeset: 16131:37cd62516b37
user: Timo Sirainen <tss at iki.fi>
date: Sun Mar 31 18:15:00 2013 +0300
description:
auth: nodelay and nopassword fields weren't handled correctly.
diffstat:
src/auth/auth-request.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diffs (35 lines):
diff -r 9a8119326bd0 -r 37cd62516b37 src/auth/auth-request.c
--- a/src/auth/auth-request.c Sun Mar 31 17:25:10 2013 +0300
+++ b/src/auth/auth-request.c Sun Mar 31 18:15:00 2013 +0300
@@ -1326,8 +1326,13 @@
if (auth_request_try_update_username(request, name, value)) {
/* don't change the original value so it gets saved correctly
to cache. */
- } else if (strcmp(name, "nodelay") == 0) {
- /* don't delay replying to client of the failure */
+ } else if (strcmp(name, "allow_nets") == 0) {
+ auth_request_validate_networks(request, value);
+ } else if (strncmp(name, "userdb_", 7) == 0) {
+ /* for prefetch userdb */
+ if (request->userdb_reply == NULL)
+ auth_request_init_userdb_reply(request);
+ auth_request_set_userdb_field(request, name + 7, value);
} else if (strcmp(name, "nopassword") == 0) {
/* NULL password - anything goes */
const char *password = request->passdb_password;
@@ -1343,13 +1348,8 @@
}
}
request->passdb_password = NULL;
- } else if (strcmp(name, "allow_nets") == 0) {
- auth_request_validate_networks(request, value);
- } else if (strncmp(name, "userdb_", 7) == 0) {
- /* for prefetch userdb */
- if (request->userdb_reply == NULL)
- auth_request_init_userdb_reply(request);
- auth_request_set_userdb_field(request, name + 7, value);
+ auth_fields_add(request->extra_fields, name, value, 0);
+ return;
} else {
/* these fields are returned to client */
auth_fields_add(request->extra_fields, name, value, 0);
More information about the dovecot-cvs
mailing list