s3:smb2_server: reset req->last_session_id and req->last_tid after using it
authorStefan Metzmacher <metze@samba.org>
Thu, 20 Sep 2012 03:10:28 +0000 (05:10 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 29 Oct 2012 09:05:37 +0000 (10:05 +0100)
commit941787c24bac5405c99d274b65e7c950c023dd4b
tree0c89500fb367b76c4211a61c9dd684ad129eacbf
parentc7e2411c375e50c1a553327e1c5bbef92f8e7d08
s3:smb2_server: reset req->last_session_id and req->last_tid after using it

If we can find a valid session or tcon we'll set it after the lookup,
but it need to make sure to reset it if we don't find the session.

This fixes a problem where a compound unrelated request between
related requests doesn't reset the session.

If we have 3 requests in a compound chain, request 3 should never
use the id's cached from request 1. It should only every inherit
handles from request 2.

metze
(similar to commit 2552b6632372b35cbd7b788c4e00091dfe520a41)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 68ef8cf99a7421daa1d57895189cfc2dc508adfd)
source3/smbd/smb2_sesssetup.c
source3/smbd/smb2_tcon.c