dovecot-2.1: auth: Minor code cleanup.
dovecot at dovecot.org
dovecot at dovecot.org
Wed Apr 25 21:32:08 EEST 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/26bf68448638
changeset: 14478:26bf68448638
user: Timo Sirainen <tss at iki.fi>
date: Wed Apr 25 21:23:24 2012 +0300
description:
auth: Minor code cleanup.
diffstat:
src/auth/auth-request-handler.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diffs (21 lines):
diff -r aba344bb85f3 -r 26bf68448638 src/auth/auth-request-handler.c
--- a/src/auth/auth-request-handler.c Wed Apr 25 16:44:22 2012 +0300
+++ b/src/auth/auth-request-handler.c Wed Apr 25 21:23:24 2012 +0300
@@ -162,12 +162,11 @@
extra_fields = auth_stream_reply_export(request->extra_fields);
- if (!request->proxy) {
- /* we only wish to remove all fields prefixed with "userdb_" */
- if (strstr(extra_fields, "userdb_") == NULL) {
- auth_stream_reply_import(reply, extra_fields);
- return;
- }
+ if (!request->proxy && strstr(extra_fields, "userdb_") == NULL) {
+ /* optimization: there are no userdb_* fields, we can just
+ import */
+ auth_stream_reply_import(reply, extra_fields);
+ return;
}
fields = t_strsplit_tab(extra_fields);
More information about the dovecot-cvs
mailing list