s3:smb2_server: reset req->last_session_id and req->last_tid after using it
commit2552b6632372b35cbd7b788c4e00091dfe520a41
authorStefan Metzmacher <metze@samba.org>
Thu, 20 Sep 2012 03:10:28 +0000 (20 05:10 +0200)
committerMichael Adam <obnox@samba.org>
Sat, 22 Sep 2012 08:18:57 +0000 (22 10:18 +0200)
treed114ee03e19e8bbdd942e1fc2b3c6742078258b6
parentbd8d50b451ea7f94efa7777fbe5dc0c2c19f6bf9
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
source3/smbd/smb2_server.c