diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-08-01 14:14:39 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-08-01 14:16:01 +0200 |
commit | 7af537e66f0e73ee629b3457ee78a11101f4e1c9 (patch) | |
tree | 08e1c45ff50086b36c6e1ce89a076fd83697f7ff /libcli | |
parent | 68c1eec11d0cd29821025dbea7c9b55ee31897d0 (diff) | |
download | samba-7af537e66f0e73ee629b3457ee78a11101f4e1c9.tar.gz |
libcli/smb: allow resetting of the smb1 application_key
We need this untill we have fixed all callers...
metze
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/smb/smbXcli_base.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c index 1b3a688a9e..ff24688f08 100644 --- a/libcli/smb/smbXcli_base.c +++ b/libcli/smb/smbXcli_base.c @@ -4303,7 +4303,6 @@ 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, @@ -4317,7 +4316,12 @@ NTSTATUS smb1cli_session_set_session_key(struct smbXcli_session *session, } if (session->smb1.application_key.length != 0) { - return NT_STATUS_INVALID_PARAMETER_MIX; + /* + * TODO: do not allow this... + * + * return NT_STATUS_INVALID_PARAMETER_MIX; + */ + data_blob_clear_free(&session->smb1.application_key); } if (_session_key.length == 0) { |