changeset 5434:f768041d91e6 HEAD

Update waiting_auth_reply early enough, so that if client does another authentication after a failed one it can send the input before waiting for server's initial reply.
author Timo Sirainen <tss@iki.fi>
date Tue, 27 Mar 2007 01:23:03 +0300
parents 6f5ff9a7554f
children bd1be5cb3985
files src/login-common/sasl-server.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/login-common/sasl-server.c	Tue Mar 27 01:20:01 2007 +0300
+++ b/src/login-common/sasl-server.c	Tue Mar 27 01:23:03 2007 +0300
@@ -59,10 +59,11 @@
 	}
 
 	i_assert(client->auth_request == request);
+	client->waiting_auth_reply = FALSE;
+
 	switch (status) {
 	case 0:
 		/* continue */
-		client->waiting_auth_reply = FALSE;
 		client->sasl_callback(client, SASL_SERVER_REPLY_CONTINUE,
 				      data_base64, NULL);
 		break;