summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-02-27 09:20:20 +0100
committerStefan Metzmacher <metze@samba.org>2012-02-27 12:51:34 +0100
commitb7684f2ac65e308dd2f159d81d6326491c8f557a (patch)
tree01a00f30afa98844bbe9fbc8bd7a9a1ae057ad7b
parent07b1de98cd50f061f410b36043efcf13210caf6b (diff)
downloadsamba-b7684f2ac65e308dd2f159d81d6326491c8f557a.tar.gz
samba-b7684f2ac65e308dd2f159d81d6326491c8f557a.tar.bz2
samba-b7684f2ac65e308dd2f159d81d6326491c8f557a.zip
s4:libcli/smb2: remove unused 'session_key' from struct smb2_session
metze
-rw-r--r--source4/libcli/smb2/session.c8
-rw-r--r--source4/libcli/smb2/smb2.h1
2 files changed, 5 insertions, 4 deletions
diff --git a/source4/libcli/smb2/session.c b/source4/libcli/smb2/session.c
index 976880857d..097411813a 100644
--- a/source4/libcli/smb2/session.c
+++ b/source4/libcli/smb2/session.c
@@ -213,14 +213,16 @@ static void smb2_session_setup_spnego_done(struct tevent_req *subreq)
}
if (NT_STATUS_IS_OK(peer_status) && NT_STATUS_IS_OK(state->gensec_status)) {
- status = gensec_session_key(session->gensec, session,
- &session->session_key);
+ DATA_BLOB session_key;
+
+ status = gensec_session_key(session->gensec, state,
+ &session_key);
if (tevent_req_nterror(req, status)) {
return;
}
status = smb2cli_session_set_session_key(session->smbXcli,
- session->session_key,
+ session_key,
recv_iov);
if (tevent_req_nterror(req, status)) {
return;
diff --git a/source4/libcli/smb2/smb2.h b/source4/libcli/smb2/smb2.h
index 6d66e7a7e4..1cff5eac59 100644
--- a/source4/libcli/smb2/smb2.h
+++ b/source4/libcli/smb2/smb2.h
@@ -116,7 +116,6 @@ struct smb2_session {
struct smb2_transport *transport;
struct gensec_security *gensec;
uint32_t pid;
- DATA_BLOB session_key;
struct smbXcli_session *smbXcli;
};