From 8eed525e0b2b71f5d39657f9c81ce37f819c4a6a Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 19 Oct 2011 14:01:01 +0200 Subject: s4:libcli/raw: make use of _smb_setlen_nbt() metze --- source4/libcli/raw/clitransport.c | 2 +- source4/libcli/raw/rawrequest.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source4') diff --git a/source4/libcli/raw/clitransport.c b/source4/libcli/raw/clitransport.c index 08e49fdd1a..b8df09ece3 100644 --- a/source4/libcli/raw/clitransport.c +++ b/source4/libcli/raw/clitransport.c @@ -190,7 +190,7 @@ struct smbcli_request *smbcli_transport_connect_send(struct smbcli_transport *tr memcpy(p, calling_blob.data, calling_blob.length); p += calling_blob.length; - _smb_setlen(req->out.buffer, PTR_DIFF(p, req->out.buffer) - NBT_HDR_SIZE); + _smb_setlen_nbt(req->out.buffer, PTR_DIFF(p, req->out.buffer) - NBT_HDR_SIZE); SCVAL(req->out.buffer,0,0x81); if (!smbcli_request_send(req)) { diff --git a/source4/libcli/raw/rawrequest.c b/source4/libcli/raw/rawrequest.c index c9b78d726b..3b0cf7cabb 100644 --- a/source4/libcli/raw/rawrequest.c +++ b/source4/libcli/raw/rawrequest.c @@ -336,7 +336,7 @@ NTSTATUS smbcli_chained_advance(struct smbcli_request *req) bool smbcli_request_send(struct smbcli_request *req) { if (IVAL(req->out.buffer, 0) == 0) { - _smb_setlen(req->out.buffer, req->out.size - NBT_HDR_SIZE); + _smb_setlen_nbt(req->out.buffer, req->out.size - NBT_HDR_SIZE); } smbcli_request_calculate_sign_mac(req); -- cgit