From 1bb5664127992119b9f95d6269f2ae9fa534633b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 28 Mar 2000 03:03:34 +0000 Subject: damn, the test was the wrong way around for short_resuest (This used to be commit 1ac46c40118fce9443141ce19506d124a873b73d) --- source3/nmbd/nmbd_processlogon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/nmbd/nmbd_processlogon.c') 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 */ -- cgit