mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
r2261: fix getdc mailslot checks; testing with Windows 98se, WinME, WinNT 4.0/200x/XP
(This used to be commit 8ad147508ac653698ebacf9fd19fc5eb5863db28)
This commit is contained in:
parent
debfeb8878
commit
1ee9f9ad81
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user