summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-09-15 12:16:22 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-09-15 12:16:22 +0000
commit90b5a6279ee9998fa79f9420952ff954dc50c999 (patch)
tree32cfbc7117867a4d5a03231589a337f8ddd4f8e4 /source3/smbd
parent1c6b0ff99e74809fafaa9135d4ba54bfd5ebe8f3 (diff)
downloadsamba-90b5a6279ee9998fa79f9420952ff954dc50c999.tar.gz
samba-90b5a6279ee9998fa79f9420952ff954dc50c999.tar.bz2
samba-90b5a6279ee9998fa79f9420952ff954dc50c999.zip
This looked suspicious now we are attempting to to NTLMv2.
Andrew Bartlett (This used to be commit 21baa33946a24159ebe873ac37cf30581437aa1a)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/reply.c4
1 files changed, 2 insertions, 2 deletions
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);