1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

damn, the test was the wrong way around for short_resuest

This commit is contained in:
Andrew Tridgell 0001-01-01 00:00:00 +00:00
parent 676db02f1c
commit 1ac46c4011

View File

@ -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 */