1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-15 02:50:27 +03:00
Stefan Metzmacher fb602bddc4 s3:smb2_server: correctly maintain request counters for compound requests
If a session expires during a compound request chain,
we exit smbd_smb2_request_dispatch() with
'return smbd_smb2_request_error(req, ...)' before
calling smbd_smb2_request_dispatch_update_counts().

As req->request_counters_updated was only reset
within smbd_smb2_request_dispatch_update_counts(),
smbd_smb2_request_reply_update_counts() was called
twice on the same request, which triggers
SMB_ASSERT(op->request_count > 0);

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13215

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit 87e25cd1e45bfe57292b62ffc44ddafc01c61ca0)
2018-04-12 17:26:40 +02:00
..
2014-01-03 05:04:44 +01:00
2017-11-29 12:59:34 +01:00
2015-12-22 02:22:50 +01:00
2016-12-11 11:17:24 +01:00
2015-03-17 11:30:52 +01:00
2018-03-13 10:28:56 +01:00