svn commit: samba r5396 - in branches/SAMBA_4_0/source/libcli/nbt: .
tridge at samba.org
tridge at samba.org
Mon Feb 14 11:31:50 GMT 2005
Author: tridge
Date: 2005-02-14 11:31:48 +0000 (Mon, 14 Feb 2005)
New Revision: 5396
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5396
Log:
fixed parsing of NBT type 0xc0 compressed name pointers
Modified:
branches/SAMBA_4_0/source/libcli/nbt/nbtname.c
Changeset:
Modified: branches/SAMBA_4_0/source/libcli/nbt/nbtname.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/nbt/nbtname.c 2005-02-14 10:08:10 UTC (rev 5395)
+++ branches/SAMBA_4_0/source/libcli/nbt/nbtname.c 2005-02-14 11:31:48 UTC (rev 5396)
@@ -55,8 +55,9 @@
if (1 + *offset >= ndr->data_size) {
return NT_STATUS_BAD_NETWORK_NAME;
}
+ *max_offset = MAX(*max_offset, *offset + 2);
*offset = ((len&0x3F)<<8) | ndr->data[1 + *offset];
- *max_offset = MAX(*max_offset, *offset + 1);
+ *max_offset = MAX(*max_offset, *offset);
loops++;
continue;
}
More information about the samba-cvs
mailing list