git.samba.org
/
rusty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8eed525
)
s4:libcli/smb2: make use of _smb_setlen_tcp()
author
Stefan Metzmacher
<metze@samba.org>
Wed, 19 Oct 2011 12:01:29 +0000
(14:01 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Wed, 19 Oct 2011 13:44:29 +0000
(15:44 +0200)
metze
source4/libcli/smb2/transport.c
patch
|
blob
|
history
diff --git
a/source4/libcli/smb2/transport.c
b/source4/libcli/smb2/transport.c
index c17bbfde46ec502f379bde5b9bfcdcfc53456d46..da0fba8e8e3b66e170e58240933e28a9c87e12e0 100644
(file)
--- 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;
}
TALLOC_FREE(state);
goto error;
}
- _smb
2_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);
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;
}
return NT_STATUS_NET_WRITE_FAULT;
}
- _smb
2_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)) {
blob = data_blob_const(buffer->buffer, buffer->size);
status = packet_send(transport->packet, blob);
if (!NT_STATUS_IS_OK(status)) {