summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
Diffstat (limited to 'libcli')
-rw-r--r--libcli/smb/smbXcli_base.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c
index 14737fb8b1..826e3bc4de 100644
--- a/libcli/smb/smbXcli_base.c
+++ b/libcli/smb/smbXcli_base.c
@@ -4239,6 +4239,12 @@ NTSTATUS smb2cli_session_create_channel(TALLOC_CTX *mem_ctx,
return NT_STATUS_NO_MEMORY;
}
+ session2->smb2.application_key = data_blob_dup_talloc(session2,
+ session1->smb2.application_key);
+ if (session2->smb2.application_key.data == NULL) {
+ return NT_STATUS_NO_MEMORY;
+ }
+
session2->smb2.should_sign = session1->smb2.should_sign;
talloc_set_destructor(session2, smbXcli_session_destructor);