]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:smb2_sesssetup: always assign smb2req->session when a session was created.
authorStefan Metzmacher <metze@samba.org>
Sat, 2 May 2015 14:27:26 +0000 (16:27 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 20 May 2015 14:34:30 +0000 (16:34 +0200)
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)

source3/smbd/smb2_sesssetup.c

index 00ef993e9f6f7ca9fe1ec1a1fde8ce4116e1f115..825f685787656bfc396f47b8c0ce18d123f67732 100644 (file)
@@ -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,