[Dovecot] [PATCH] fix NTLM2 endianness buglet

Andrey Panin pazke at donpac.ru
Thu Oct 7 11:09:06 EEST 2004


Hi,

this patch fixes endianness problem in NTLM2 code.
Please consider applying.

Best regards.

-- 
Andrey Panin		| Linux and UNIX system administrator
pazke at donpac.ru		| PGP key: wwwkeys.pgp.net
-------------- next part --------------
diff -u dovecot-1.0-test46/src/auth/mech-ntlm.c dovecot-1.0-test46/src/auth/mech-ntlm.c
--- dovecot-1.0-test46/src/auth/mech-ntlm.c	2004-09-28 23:45:46.000000000 +0400
+++ dovecot-1.0-test46/src/auth/mech-ntlm.c	2004-10-04 21:41:48.000000000 +0400
@@ -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);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://dovecot.org/pipermail/dovecot/attachments/20041007/c536aa95/attachment-0001.bin>


More information about the dovecot mailing list