dovecot-2.0: auth: If initial SASL reply was given but empty, pa...

dovecot at dovecot.org dovecot at dovecot.org
Tue May 26 03:35:49 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/116d94937979
changeset: 9361:116d94937979
user:      Timo Sirainen <tss at iki.fi>
date:      Mon May 25 20:34:33 2009 -0400
description:
auth: If initial SASL reply was given but empty, pass it to auth mechanisms.

diffstat:

1 file changed, 2 insertions(+), 1 deletion(-)
src/auth/mech.c |    3 ++-

diffs (16 lines):

diff -r fd3c13b9837b -r 116d94937979 src/auth/mech.c
--- a/src/auth/mech.c	Mon May 25 19:44:56 2009 -0400
+++ b/src/auth/mech.c	Mon May 25 20:34:33 2009 -0400
@@ -49,10 +49,11 @@ void mech_generic_auth_initial(struct au
 void mech_generic_auth_initial(struct auth_request *request,
 			       const unsigned char *data, size_t data_size)
 {
-	if (data_size == 0) {
+	if (data == NULL) {
 		request->callback(request, AUTH_CLIENT_RESULT_CONTINUE,
 				  NULL, 0);
 	} else {
+		/* initial reply given, even if it was 0 bytes */
 		request->mech->auth_continue(request, data, data_size);
 	}
 }


More information about the dovecot-cvs mailing list