Author: jra Date: 2006-01-13 23:23:09 +0000 (Fri, 13 Jan 2006) New Revision: 12920
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12920 Log: Fix for #3401 from Andrew Bartlett. Original fix from Yau Lam Yiu <[EMAIL PROTECTED]>. Jeremy. Modified: branches/SAMBA_3_0/source/libsmb/ntlmssp.c Changeset: Modified: branches/SAMBA_3_0/source/libsmb/ntlmssp.c =================================================================== --- branches/SAMBA_3_0/source/libsmb/ntlmssp.c 2006-01-13 23:08:20 UTC (rev 12919) +++ branches/SAMBA_3_0/source/libsmb/ntlmssp.c 2006-01-13 23:23:09 UTC (rev 12920) @@ -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.
