smbd:smb2: add request_counters_updated to the smbd_smb2_request struct
authorMichael Adam <obnox@samba.org>
Tue, 15 Mar 2016 11:36:59 +0000 (12:36 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 9 May 2016 08:38:06 +0000 (10:38 +0200)
This will be used to keep track of whether the outstanding request
counters have been updated in the dispatch, so that the reply
code can act accordingly.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit ae6967ea3e39a1a5401be4a4c969b467dd22dce4)

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

source3/smbd/globals.h

index 15f29a82b9b97ec4abd3d84f2787fe3198e10ec3..9e3e95c8904eb0d38bbb5f82844a23afddd08097 100644 (file)
@@ -726,6 +726,13 @@ struct smbd_smb2_request {
        struct smb_request *smb1req;
        struct files_struct *compat_chain_fsp;
 
+       /*
+        * Keep track of whether the outstanding request counters
+        * had been updated in dispatch, so that they need to be
+        * adapted again in reply.
+        */
+       bool request_counters_updated;
+
        /*
         * The sub request for async backend calls.
         * This is used for SMB2 Cancel.