s3: Directly call common_encrypt_buffer in cli_smb_req_iov_send
authorVolker Lendecke <vl@samba.org>
Sun, 22 May 2011 17:13:19 +0000 (19:13 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 23 May 2011 09:06:08 +0000 (11:06 +0200)
source3/libsmb/async_smb.c

index dfab82ada17ad69c6d69272fee0fa850ad892e39..3ed38718c1a2ba9ace5124a3b4cce0204d7ea1e1 100644 (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",