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 | 1ac46c40118fce9443141ce19506d124a873b73d (patch) | |
tree | b5a8c6a52014aa38cc73b5ed2282b31d99560519 | |
parent | 676db02f1cd7cb81c58cbbdd3bc94da17dad5227 (diff) | |
download | samba-1ac46c40118fce9443141ce19506d124a873b73d.tar.gz samba-1ac46c40118fce9443141ce19506d124a873b73d.tar.xz samba-1ac46c40118fce9443141ce19506d124a873b73d.zip |
damn, the test was the wrong way around for short_resuest
-rw-r--r-- | source/nmbd/nmbd_processlogon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/nmbd/nmbd_processlogon.c b/source/nmbd/nmbd_processlogon.c index 0886654de9f..a0e747648c3 100644 --- a/source/nmbd/nmbd_processlogon.c +++ b/source/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 */ |