git.samba.org
/
rusty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da32fb6
)
s4:lib/stream: make use of smb_len_tcp()
author
Stefan Metzmacher
<metze@samba.org>
Wed, 19 Oct 2011 12:00:12 +0000
(14:00 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Wed, 19 Oct 2011 13:44:29 +0000
(15:44 +0200)
metze
source4/lib/stream/packet.c
patch
|
blob
|
history
diff --git
a/source4/lib/stream/packet.c
b/source4/lib/stream/packet.c
index 545d518cffa34523006aaa455cb511ff6387e73a..3a7f600560843be1031a65cfba6104e32dc0b48e 100644
(file)
--- 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;
}