svn commit: samba r1896 - branches/SAMBA_4_0/source/libcli/raw
tridge at samba.org
tridge at samba.org
Wed Aug 18 20:07:44 GMT 2004
Author: tridge
Date: 2004-08-18 20:07:44 +0000 (Wed, 18 Aug 2004)
New Revision: 1896
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=1896&nolog=1
Log:
stricter check on packet parsing for NBT session replies
Modified:
branches/SAMBA_4_0/source/libcli/raw/clitransport.c
Changeset:
Modified: branches/SAMBA_4_0/source/libcli/raw/clitransport.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/raw/clitransport.c 2004-08-18 20:04:56 UTC (rev 1895)
+++ branches/SAMBA_4_0/source/libcli/raw/clitransport.c 2004-08-18 20:07:44 UTC (rev 1896)
@@ -354,7 +354,7 @@
req->in.allocated = req->in.size;
/* handle NBT session replies */
- if (req->in.buffer[0] != 0) {
+ if (req->in.size >= 4 && req->in.buffer[0] != 0) {
req->status = NT_STATUS_OK;
goto async;
}
More information about the samba-cvs
mailing list