diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-03-28 03:03:34 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-03-28 03:03:34 +0000 |
commit | 1bb5664127992119b9f95d6269f2ae9fa534633b (patch) | |
tree | 11c77aba965e42d38bc4a53836148fb9318b04c6 | |
parent | b546035ba8b29188e249aaa55d140b1b93304dd4 (diff) | |
download | samba-1bb5664127992119b9f95d6269f2ae9fa534633b.tar.gz samba-1bb5664127992119b9f95d6269f2ae9fa534633b.tar.bz2 samba-1bb5664127992119b9f95d6269f2ae9fa534633b.zip |
damn, the test was the wrong way around for short_resuest
(This used to be commit 1ac46c40118fce9443141ce19506d124a873b73d)
-rw-r--r-- | source3/nmbd/nmbd_processlogon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nmbd/nmbd_processlogon.c b/source3/nmbd/nmbd_processlogon.c index 0886654de9..a0e747648c 100644 --- a/source3/nmbd/nmbd_processlogon.c +++ b/source3/nmbd/nmbd_processlogon.c @@ -122,7 +122,7 @@ logons are not enabled.\n", inet_ntoa(p->ip) )); packet ends here. For a W9X request we now end with a pair of bytes (usually 0xFE 0xFF) whereas with NT we have two further strings - the following is a simple way of detecting this */ - if (len - PTR_DIFF(unicomp, buf) > 3) { + if (len - PTR_DIFF(unicomp, buf) <= 3) { short_request = True; } else { /* A full length (NT style) request */ |