summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-10-19 14:01:29 +0200
committerStefan Metzmacher <metze@samba.org>2011-10-19 15:44:29 +0200
commit8574d509a94ccf44c129d9c5b2a71f631d4fbfb0 (patch)
tree40c8a915099a3ba68e2ba5deb062b57c1465e142
parent8eed525e0b2b71f5d39657f9c81ce37f819c4a6a (diff)
downloadsamba-8574d509a94ccf44c129d9c5b2a71f631d4fbfb0.tar.gz
samba-8574d509a94ccf44c129d9c5b2a71f631d4fbfb0.tar.bz2
samba-8574d509a94ccf44c129d9c5b2a71f631d4fbfb0.zip
s4:libcli/smb2: make use of _smb_setlen_tcp()
metze
-rw-r--r--source4/libcli/smb2/transport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/libcli/smb2/transport.c b/source4/libcli/smb2/transport.c
index c17bbfde46..da0fba8e8e 100644
--- a/source4/libcli/smb2/transport.c
+++ b/source4/libcli/smb2/transport.c
@@ -382,7 +382,7 @@ static NTSTATUS smb2_transport_finish_recv(void *private_data, DATA_BLOB blob)
TALLOC_FREE(state);
goto error;
}
- _smb2_setlen(state->blob.data, state->blob.length - NBT_HDR_SIZE);
+ _smb_setlen_tcp(state->blob.data, state->blob.length - NBT_HDR_SIZE);
memcpy(state->blob.data + NBT_HDR_SIZE,
req->in.hdr + next_ofs,
req->in.allocated - req->in.size);
@@ -456,7 +456,7 @@ static NTSTATUS smb2_transport_raw_send(struct smb2_transport *transport,
return NT_STATUS_NET_WRITE_FAULT;
}
- _smb2_setlen(buffer->buffer, buffer->size - NBT_HDR_SIZE);
+ _smb_setlen_tcp(buffer->buffer, buffer->size - NBT_HDR_SIZE);
blob = data_blob_const(buffer->buffer, buffer->size);
status = packet_send(transport->packet, blob);
if (!NT_STATUS_IS_OK(status)) {