diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-10-19 14:01:01 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-10-19 15:44:29 +0200 |
commit | 8eed525e0b2b71f5d39657f9c81ce37f819c4a6a (patch) | |
tree | 0c31650b136c94b42b5e35c220f9c9ae62d2530a | |
parent | b0480f26ca3823d618f85f381700fcd23d299220 (diff) | |
download | samba-8eed525e0b2b71f5d39657f9c81ce37f819c4a6a.tar.gz samba-8eed525e0b2b71f5d39657f9c81ce37f819c4a6a.tar.bz2 samba-8eed525e0b2b71f5d39657f9c81ce37f819c4a6a.zip |
s4:libcli/raw: make use of _smb_setlen_nbt()
metze
-rw-r--r-- | source4/libcli/raw/clitransport.c | 2 | ||||
-rw-r--r-- | source4/libcli/raw/rawrequest.c | 2 |
2 files changed, 2 insertions, 2 deletions
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); |