[dovecot-cvs] dovecot/src/login-common sasl-server.c,1.17,1.18

tss at dovecot.org tss at dovecot.org
Tue Mar 27 01:23:06 EEST 2007


Update of /var/lib/cvs/dovecot/src/login-common
In directory talvi:/tmp/cvs-serv17152

Modified Files:
	sasl-server.c 
Log Message:
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.



Index: sasl-server.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/login-common/sasl-server.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- sasl-server.c	6 Mar 2007 23:59:43 -0000	1.17
+++ sasl-server.c	26 Mar 2007 22:23:03 -0000	1.18
@@ -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;



More information about the dovecot-cvs mailing list