svn commit: samba r2261 - in branches/SAMBA_3_0/source/nmbd: .
jerry at samba.org
jerry at samba.org
Thu Sep 9 01:46:20 GMT 2004
Author: jerry
Date: 2004-09-09 01:46:20 +0000 (Thu, 09 Sep 2004)
New Revision: 2261
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_3_0/source/nmbd&rev=2261&nolog=1
Log:
fix getdc mailslot checks; testing with Windows 98se, WinME, WinNT 4.0/200x/XP
Modified:
branches/SAMBA_3_0/source/nmbd/nmbd_processlogon.c
Changeset:
Modified: branches/SAMBA_3_0/source/nmbd/nmbd_processlogon.c
===================================================================
--- branches/SAMBA_3_0/source/nmbd/nmbd_processlogon.c 2004-09-08 20:57:29 UTC (rev 2260)
+++ branches/SAMBA_3_0/source/nmbd/nmbd_processlogon.c 2004-09-09 01:46:20 UTC (rev 2261)
@@ -114,7 +114,7 @@
}
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 @@
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 @@
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;
}
More information about the samba-cvs
mailing list