From 1ee9f9ad81d6619f581b87ef9e631d18ee4452b9 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Thu, 9 Sep 2004 01:46:20 +0000 Subject: r2261: fix getdc mailslot checks; testing with Windows 98se, WinME, WinNT 4.0/200x/XP (This used to be commit 8ad147508ac653698ebacf9fd19fc5eb5863db28) --- source3/nmbd/nmbd_processlogon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/nmbd/nmbd_processlogon.c') 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; } -- cgit