summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-10-19 14:02:30 +0200
committerStefan Metzmacher <metze@samba.org>2011-10-19 15:44:30 +0200
commit8bf1e4caae0fcf87aa87bce2eaff2aab7ead8746 (patch)
tree00789f59a5a1c0bf89a4ab295c797709c5f592bc
parent2fbbf751f5afc5e8ed00c9ecb6ac817982f6362b (diff)
downloadsamba-8bf1e4caae0fcf87aa87bce2eaff2aab7ead8746.tar.gz
samba-8bf1e4caae0fcf87aa87bce2eaff2aab7ead8746.tar.bz2
samba-8bf1e4caae0fcf87aa87bce2eaff2aab7ead8746.zip
s4:smb_server/smb2: make use of _smb_setlen_tcp()
metze
-rw-r--r--source4/smb_server/smb2/receive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/smb_server/smb2/receive.c b/source4/smb_server/smb2/receive.c
index 40a57b88f1..b51e2b0500 100644
--- a/source4/smb_server/smb2/receive.c
+++ b/source4/smb_server/smb2/receive.c
@@ -251,7 +251,7 @@ void smb2srv_send_reply(struct smb2srv_request *req)
}
if (req->out.size > NBT_HDR_SIZE) {
- _smb2_setlen(req->out.buffer, req->out.size - NBT_HDR_SIZE);
+ _smb_setlen_tcp(req->out.buffer, req->out.size - NBT_HDR_SIZE);
}
/* if signing is active on the session then sign the packet */