summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-08-01 13:25:18 +0200
committerStefan Metzmacher <metze@samba.org>2012-08-01 13:35:21 +0200
commit68c1eec11d0cd29821025dbea7c9b55ee31897d0 (patch)
treeaaefc18fe0d8bd4b2d1d8329b1e4c9d7f67e7e83 /libcli
parentc3cb672d3810cb2fb0076fac3b949df5f2462451 (diff)
downloadsamba-68c1eec11d0cd29821025dbea7c9b55ee31897d0.tar.gz
samba-68c1eec11d0cd29821025dbea7c9b55ee31897d0.tar.bz2
samba-68c1eec11d0cd29821025dbea7c9b55ee31897d0.zip
libcli/smb: let smb1cli_session_set_id() reset the application_key
We have some callers which reuse smbXcli_session, e.g. cli_state_set_uid() metze
Diffstat (limited to 'libcli')
-rw-r--r--libcli/smb/smbXcli_base.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c
index 66cb8732ec..1b3a688a9e 100644
--- a/libcli/smb/smbXcli_base.c
+++ b/libcli/smb/smbXcli_base.c
@@ -4303,6 +4303,7 @@ void smb1cli_session_set_id(struct smbXcli_session *session,
uint16_t session_id)
{
session->smb1.session_id = session_id;
+ data_blob_clear_free(&session->smb1.application_key);
}
NTSTATUS smb1cli_session_set_session_key(struct smbXcli_session *session,