summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2015-05-02 16:27:26 +0200
committerKarolin Seeger <kseeger@samba.org>2015-05-20 16:34:30 +0200
commitf28cbf0fe2a9f3b84e867e78cbc5f2b91b99823c (patch)
treeaaa2cc527c4fc3188190a44e41121b4eaa6b80c5 /source3
parentbd03b6a5b151b982332dcb24b4677370f9bb4c32 (diff)
downloadsamba-f28cbf0fe2a9f3b84e867e78cbc5f2b91b99823c.tar.gz
s3:smb2_sesssetup: always assign smb2req->session when a session was created.
Bug: https://bugzilla.samba.org/show_bug.cgi?id=11182 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 8f0d4d1132b74615dc6198ab736590dec52effda)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/smb2_sesssetup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/smb2_sesssetup.c b/source3/smbd/smb2_sesssetup.c
index 00ef993e9f6..825f6857876 100644
--- a/source3/smbd/smb2_sesssetup.c
+++ b/source3/smbd/smb2_sesssetup.c
@@ -362,7 +362,6 @@ static NTSTATUS smbd_smb2_auth_generic_return(struct smbXsrv_session *session,
* we attach the session to the request
* so that the response can be signed
*/
- smb2req->session = session;
if (!guest) {
smb2req->do_signing = true;
}
@@ -540,6 +539,7 @@ static struct tevent_req *smbd_smb2_session_setup_send(TALLOC_CTX *mem_ctx,
if (tevent_req_nterror(req, status)) {
return tevent_req_post(req, ev);
}
+ smb2req->session = state->session;
} else {
status = smb2srv_session_lookup(state->smb2req->sconn->conn,
state->in_session_id, now,