summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-11-27 14:58:09 -0800
committerKarolin Seeger <kseeger@samba.org>2012-11-29 09:02:09 +0100
commit1036f3d93311f7521ba2ef56a83d74a0b7ac2e36 (patch)
tree9cf502869215645e2ef17045677f7beb4b4fbf68 /libcli
parent08db4810ca1000248ff54595b851bb8cbfafc2d0 (diff)
downloadsamba-1036f3d93311f7521ba2ef56a83d74a0b7ac2e36.tar.gz
Fix Bug 9422 - large read requests cause server to issue malformed reply
Reviewed by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'libcli')
-rw-r--r--libcli/smb/smb_seal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcli/smb/smb_seal.c b/libcli/smb/smb_seal.c
index 78af733d00f..f4f804c9473 100644
--- a/libcli/smb/smb_seal.c
+++ b/libcli/smb/smb_seal.c
@@ -56,7 +56,7 @@ NTSTATUS get_enc_ctx_num(const uint8_t *buf, uint16_t *p_enc_ctx_num)
static void smb_set_enclen(char *buf,int len,uint16_t enc_ctx_num)
{
- _smb_setlen_nbt(buf,len);
+ _smb_setlen_tcp(buf,len);
SCVAL(buf,4,0xFF);
SCVAL(buf,5,'E');