summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-03-28 03:03:34 +0000
committerAndrew Tridgell <tridge@samba.org>2000-03-28 03:03:34 +0000
commit1ac46c40118fce9443141ce19506d124a873b73d (patch)
treeb5a8c6a52014aa38cc73b5ed2282b31d99560519
parent676db02f1cd7cb81c58cbbdd3bc94da17dad5227 (diff)
downloadsamba-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.c2
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 */