diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-07-20 09:22:17 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-07-23 18:19:36 +0200 |
commit | d333edbe14a35bc1b0c2a0518c2e412f56ffda70 (patch) | |
tree | 5c39babbfddd838ab4bc0698255401e14f619ce8 /libcli/smb | |
parent | 077eb578be1bc9865fc5b32816f8230737e76100 (diff) | |
download | samba-d333edbe14a35bc1b0c2a0518c2e412f56ffda70.tar.gz samba-d333edbe14a35bc1b0c2a0518c2e412f56ffda70.tar.xz samba-d333edbe14a35bc1b0c2a0518c2e412f56ffda70.zip |
libcli/smb: copy the application_key in smb2cli_session_create_channel()
metze
Diffstat (limited to 'libcli/smb')
-rw-r--r-- | libcli/smb/smbXcli_base.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c index 14737fb8b18..826e3bc4dec 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); |