1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

s3: Directly call common_encrypt_buffer in cli_smb_req_iov_send

This commit is contained in:
Volker Lendecke 2011-05-22 19:13:19 +02:00
parent df0e33008e
commit 1a393b7cd6

View File

@ -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",