summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-05-22 19:13:19 +0200
committerVolker Lendecke <vl@samba.org>2011-05-23 11:06:08 +0200
commit1a393b7cd6bb2cffd4618932fc96367f6b2bb9dd (patch)
treef3ede4655c9f6f6e01d18dfe4b064184b853b9fe /source3/libsmb
parentdf0e33008e516e0ae631a3760a4c5ff2a1237834 (diff)
downloadsamba-1a393b7cd6bb2cffd4618932fc96367f6b2bb9dd.tar.gz
samba-1a393b7cd6bb2cffd4618932fc96367f6b2bb9dd.tar.bz2
samba-1a393b7cd6bb2cffd4618932fc96367f6b2bb9dd.zip
s3: Directly call common_encrypt_buffer in cli_smb_req_iov_send
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/async_smb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c
index dfab82ada1..3ed38718c1 100644
--- a/source3/libsmb/async_smb.c
+++ b/source3/libsmb/async_smb.c
@@ -414,8 +414,8 @@ static NTSTATUS cli_smb_req_iov_send(struct tevent_req *req,
if (buf == NULL) {
return NT_STATUS_NO_MEMORY;
}
- status = cli_encrypt_message(state->cli, (char *)buf,
- &enc_buf);
+ status = common_encrypt_buffer(state->cli->trans_enc_state,
+ (char *)buf, &enc_buf);
TALLOC_FREE(buf);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0, ("Error in encrypting client message: %s\n",