summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-10-19 14:00:12 +0200
committerStefan Metzmacher <metze@samba.org>2011-10-19 15:44:29 +0200
commitb0480f26ca3823d618f85f381700fcd23d299220 (patch)
tree15381695bc520b83e553454263cf458876c2f2da /source4/lib
parentda32fb6b404a38b2043bfe55bc97e94e6ae68f7f (diff)
downloadsamba-b0480f26ca3823d618f85f381700fcd23d299220.tar.gz
samba-b0480f26ca3823d618f85f381700fcd23d299220.tar.bz2
samba-b0480f26ca3823d618f85f381700fcd23d299220.zip
s4:lib/stream: make use of smb_len_tcp()
metze
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/stream/packet.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/lib/stream/packet.c b/source4/lib/stream/packet.c
index 545d518cff..3a7f600560 100644
--- a/source4/lib/stream/packet.c
+++ b/source4/lib/stream/packet.c
@@ -583,7 +583,13 @@ _PUBLIC_ NTSTATUS packet_full_request_nbt(void *private_data, DATA_BLOB blob, si
if (blob.length < 4) {
return STATUS_MORE_ENTRIES;
}
- *size = 4 + smb_len(blob.data);
+ /*
+ * Note: that we use smb_len_tcp() instead
+ * of smb_len_nbt() as this function is not
+ * used for nbt and the source4 copy
+ * of smb_len() was smb_len_tcp()
+ */
+ *size = 4 + smb_len_tcp(blob.data);
if (*size > blob.length) {
return STATUS_MORE_ENTRIES;
}