[dovecot-cvs] dovecot/src/auth mech-ntlm.c,1.5,1.6

cras at dovecot.org cras at dovecot.org
Thu Oct 7 22:37:30 EEST 2004


Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv12456/src/auth

Modified Files:
	mech-ntlm.c 
Log Message:
fix endianness problem, patch by Andrey Panin



Index: mech-ntlm.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/mech-ntlm.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- mech-ntlm.c	5 Oct 2004 20:01:05 -0000	1.5
+++ mech-ntlm.c	7 Oct 2004 19:37:27 -0000	1.6
@@ -154,7 +154,8 @@
 
 		message = ntlmssp_create_challenge(auth->pool, request,
 						   &message_size);
-		auth->ntlm2_negotiated = message->flags & NTLMSSP_NEGOTIATE_NTLM2;
+		auth->ntlm2_negotiated =
+			read_le32(&message->flags) & NTLMSSP_NEGOTIATE_NTLM2;
 		auth->challenge = message->challenge;
 
 		mech_init_auth_client_reply(&reply);



More information about the dovecot-cvs mailing list