summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-09-09 01:46:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:38 -0500
commit1ee9f9ad81d6619f581b87ef9e631d18ee4452b9 (patch)
tree2e9c8177828fc5404e0c4cf9bded968af17fdfbd /source3
parentdebfeb8878c08a7ac835a14d163b7fb44f9416fe (diff)
downloadsamba-1ee9f9ad81d6619f581b87ef9e631d18ee4452b9.tar.gz
samba-1ee9f9ad81d6619f581b87ef9e631d18ee4452b9.tar.bz2
samba-1ee9f9ad81d6619f581b87ef9e631d18ee4452b9.zip
r2261: fix getdc mailslot checks; testing with Windows 98se, WinME, WinNT 4.0/200x/XP
(This used to be commit 8ad147508ac653698ebacf9fd19fc5eb5863db28)
Diffstat (limited to 'source3')
-rw-r--r--source3/nmbd/nmbd_processlogon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/nmbd/nmbd_processlogon.c b/source3/nmbd/nmbd_processlogon.c
index fa2a8c1cef..ae4011eb8f 100644
--- a/source3/nmbd/nmbd_processlogon.c
+++ b/source3/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;
}