summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-09-09 02:09:10 +0000
committerGerald Carter <jerry@samba.org>2004-09-09 02:09:10 +0000
commitdce8dc898b448c994ecb901dd3611394c2544214 (patch)
tree2b8d50c381e8ebe73450f46587beda7d81ee7714
parente3f4833aec59d4cbd27a465f41543cc657b58a83 (diff)
downloadsamba-dce8dc898b448c994ecb901dd3611394c2544214.tar.gz
samba-dce8dc898b448c994ecb901dd3611394c2544214.tar.xz
samba-dce8dc898b448c994ecb901dd3611394c2544214.zip
r2262: fix getdc mailslot checks; testing with Windows 98se, WinME, WinNT 4.0/200x/XP
-rw-r--r--source/nmbd/nmbd_processlogon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/nmbd/nmbd_processlogon.c b/source/nmbd/nmbd_processlogon.c
index fa2a8c1cefa..ae4011eb8f0 100644
--- a/source/nmbd/nmbd_processlogon.c
+++ b/source/nmbd/nmbd_processlogon.c
@@ -114,7 +114,7 @@ logons are not enabled.\n", inet_ntoa(p->ip) ));
}
q = skip_string(getdc,1);
- if (PTR_DIFF(q + 5, buf) >= len) {
+ if (PTR_DIFF(q + 5, buf) > len) {
DEBUG(0,("process_logon_packet: bad packet\n"));
return;
}
@@ -215,7 +215,7 @@ logons are not enabled.\n", inet_ntoa(p->ip) ));
q += 16;
}
- if (PTR_DIFF(q + 8, buf) >= len) {
+ if (PTR_DIFF(q + 8, buf) > len) {
DEBUG(0,("process_logon_packet: bad packet\n"));
return;
}
@@ -334,7 +334,7 @@ reporting %s domain %s 0x%x ntversion=%x lm_nt token=%x lm_20 token=%x\n",
q += 16;
}
- if (PTR_DIFF(q + 8, buf) >= len) {
+ if (PTR_DIFF(q + 8, buf) > len) {
DEBUG(0,("process_logon_packet: bad packet\n"));
return;
}