diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-08-01 08:55:49 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-08-01 14:17:12 +0200 |
commit | 1a9a910ce3e6b1fd6f756cb075bd2fdba465af9d (patch) | |
tree | 93f2b1dfc6926a7ee976e2c2256228492b95afc2 | |
parent | c9eac1af1462aa09dd20cdccda5807edaefb5cb7 (diff) | |
download | samba-1a9a910ce3e6b1fd6f756cb075bd2fdba465af9d.tar.gz samba-1a9a910ce3e6b1fd6f756cb075bd2fdba465af9d.tar.bz2 samba-1a9a910ce3e6b1fd6f756cb075bd2fdba465af9d.zip |
s4:libcli/smb_composite: always use set_user_session_key() helper
metze
-rw-r--r-- | source4/libcli/smb_composite/sesssetup.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source4/libcli/smb_composite/sesssetup.c b/source4/libcli/smb_composite/sesssetup.c index 63f3a8e10d..a69d300b52 100644 --- a/source4/libcli/smb_composite/sesssetup.c +++ b/source4/libcli/smb_composite/sesssetup.c @@ -195,16 +195,20 @@ static void request_handler(struct smbcli_request *req) } if (NT_STATUS_IS_OK(state->remote_status)) { + DATA_BLOB session_key; + if (state->setup.spnego.in.secblob.length) { c->status = NT_STATUS_INTERNAL_ERROR; break; } - session_key_err = gensec_session_key(session->gensec, session, &session->user_session_key); + session_key_err = gensec_session_key(session->gensec, session, &session_key); if (NT_STATUS_IS_OK(session_key_err)) { smb1cli_conn_activate_signing(session->transport->conn, - session->user_session_key, + session_key, null_data_blob); } + set_user_session_key(session, &session_key); + data_blob_free(&session_key); } if (state->setup.spnego.in.secblob.length) { |