mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
Revert "libcli/smb: add missing struct smb2_signing_key allocation in smb2cli_session_set_channel_key()"
This reverts commit 0875016654
.
This was pushed to fast, the corrected commit follows.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
0875016654
commit
824db29672
@ -6302,15 +6302,6 @@ NTSTATUS smb2cli_session_set_channel_key(struct smbXcli_session *session,
|
||||
memcpy(channel_key, _channel_key.data,
|
||||
MIN(_channel_key.length, sizeof(channel_key)));
|
||||
|
||||
session->smb2_channel.signing_key = talloc_zero(session,
|
||||
struct smb2_signing_key);
|
||||
if (session->smb2_channel.signing_key == NULL) {
|
||||
ZERO_STRUCT(channel_key);
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
talloc_set_destructor(session->smb2_channel.signing_key,
|
||||
smb2_signing_key_destructor);
|
||||
|
||||
session->smb2_channel.signing_key->blob =
|
||||
data_blob_talloc(session->smb2_channel.signing_key,
|
||||
channel_key,
|
||||
|
Loading…
Reference in New Issue
Block a user