From: Gerald Carter Date: Thu, 9 Sep 2004 01:46:20 +0000 (+0000) Subject: r2261: fix getdc mailslot checks; testing with Windows 98se, WinME, WinNT 4.0/200x/XP X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5820 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8ad147508ac653698ebacf9fd19fc5eb5863db28;p=thirdparty%2Fsamba.git r2261: fix getdc mailslot checks; testing with Windows 98se, WinME, WinNT 4.0/200x/XP --- 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; }