summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-07-12 18:57:05 +0000
committerLuke Leighton <lkcl@samba.org>1999-07-12 18:57:05 +0000
commitac61e4aee2a263de6a882e3ff125b4b65a652a2b (patch)
tree2484af8e6e359996d80c341559ef27c5ed521f42 /source3
parent8f1404739fe75464fe1500c3f6e6d39d4878ec1e (diff)
downloadsamba-ac61e4aee2a263de6a882e3ff125b4b65a652a2b.tar.gz
samba-ac61e4aee2a263de6a882e3ff125b4b65a652a2b.tar.bz2
samba-ac61e4aee2a263de6a882e3ff125b4b65a652a2b.zip
lengths of NT passwords when "encrypt passwords = no" can be completely
random. values seen can be as high as 18255. this fails the check of <= 24 which sets NT password length to 0, effectively ignoring it. the <= 24 was removed in reply_sesssetup_X. (This used to be commit 98d43b20dc4df72ddbfaeb34581222adc53d15dd)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 652d6e4795..bfa68ab140 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -605,7 +605,7 @@ user %s attempted down-level SMB connection\n", user));
setting passlen2 to some random value which really stuffs
things up. we need to fix that one. */
- if (passlen1 > 0 && passlen2 > 0 && passlen2 <= 24 && passlen2 != 1)
+ if (passlen1 > 0 && passlen2 > 0 && passlen2 != 1)
passlen2 = 0;
}