svn commit: samba r12921 - in trunk/source/libsmb: .

jra at samba.org jra at samba.org
Fri Jan 13 23:23:18 GMT 2006


Author: jra
Date: 2006-01-13 23:23:16 +0000 (Fri, 13 Jan 2006)
New Revision: 12921

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12921

Log:
Fix for #3401 from Andrew Bartlett. Original fix from
Yau Lam Yiu <yiuext at cs.ust.hk>.
Jeremy.

Modified:
   trunk/source/libsmb/ntlmssp.c


Changeset:
Modified: trunk/source/libsmb/ntlmssp.c
===================================================================
--- trunk/source/libsmb/ntlmssp.c	2006-01-13 23:23:09 UTC (rev 12920)
+++ trunk/source/libsmb/ntlmssp.c	2006-01-13 23:23:16 UTC (rev 12921)
@@ -384,6 +384,11 @@
 
 void ntlmssp_weaken_keys(NTLMSSP_STATE *ntlmssp_state)
 {
+	/* Nothing to weaken.  We certainly don't want to 'extend' the length... */
+	if (!ntlmssp_state->session_key.length < 8) {
+		return;
+	}
+
 	/* Key weakening not performed on the master key for NTLM2
 	   and does not occour for NTLM1.  Therefore we only need
 	   to do this for the LM_KEY.



More information about the samba-cvs mailing list