diff options
author | Luke Leighton <lkcl@samba.org> | 2000-04-09 02:41:16 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 2000-04-09 02:41:16 +0000 |
commit | d3ff7fd9b75bf68740c938746f0b0e3b16b5903d (patch) | |
tree | 903db0ce2b15fcce397235c492e617c94a5244e9 | |
parent | 36f790c9b637c45b1afa9e2ec0e73c8e42153469 (diff) | |
download | samba-d3ff7fd9b75bf68740c938746f0b0e3b16b5903d.tar.gz samba-d3ff7fd9b75bf68740c938746f0b0e3b16b5903d.tar.xz samba-d3ff7fd9b75bf68740c938746f0b0e3b16b5903d.zip |
GETDC request short-detection was wrong, explains why the poor win9x people
couldn't do anything (one, two, three, aaahhh).
-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 96885f1467b..66bcf39e245 100644 --- a/source/nmbd/nmbd_processlogon.c +++ b/source/nmbd/nmbd_processlogon.c @@ -130,7 +130,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 (PTR_DIFF(buf, q) >= len) + if (PTR_DIFF(q, buf) >= len) { short_request = True; } else { |