dovecot-2.2: auth: Send original_user to auth client also when t...

dovecot at dovecot.org dovecot at dovecot.org
Tue Jan 14 02:43:20 EET 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/61142fbbecf0
changeset: 17099:61142fbbecf0
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jan 14 02:43:09 2014 +0200
description:
auth: Send original_user to auth client also when there aren't any extra fields.

diffstat:

 src/auth/auth-request-handler.c |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (21 lines):

diff -r 9927ab6b99a1 -r 61142fbbecf0 src/auth/auth-request-handler.c
--- a/src/auth/auth-request-handler.c	Mon Jan 13 15:58:13 2014 -0500
+++ b/src/auth/auth-request-handler.c	Tue Jan 14 02:43:09 2014 +0200
@@ -166,12 +166,11 @@
 static void
 auth_str_append_extra_fields(struct auth_request *request, string_t *dest)
 {
-	if (auth_fields_is_empty(request->extra_fields))
-		return;
-
-	str_append_c(dest, '\t');
-	auth_fields_append(request->extra_fields, dest,
-			   AUTH_FIELD_FLAG_HIDDEN, 0);
+	if (!auth_fields_is_empty(request->extra_fields)) {
+		str_append_c(dest, '\t');
+		auth_fields_append(request->extra_fields, dest,
+				   AUTH_FIELD_FLAG_HIDDEN, 0);
+	}
 
 	if (request->original_username != NULL &&
 	    null_strcmp(request->original_username, request->user) != 0) {


More information about the dovecot-cvs mailing list