From 90b5a6279ee9998fa79f9420952ff954dc50c999 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 15 Sep 2001 12:16:22 +0000 Subject: This looked suspicious now we are attempting to to NTLMv2. Andrew Bartlett (This used to be commit 21baa33946a24159ebe873ac37cf30581437aa1a) --- source3/smbd/reply.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 9e88f58fa6..6a8fa104fb 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -592,8 +592,8 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,int } } - if (passlen1 != 24 && passlen2 != 24) - doencrypt = False; + if (passlen1 != 24 && passlen2 <= 24) + doencrypt = False; if (passlen1 > MAX_PASS_LEN) { overflow_attack(passlen1); -- cgit