summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);