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)
committerJeremy Allison <jra@samba.org>
Mon, 21 Mar 2016 23:23:21 +0000 (00:23 +0100)
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>
source3/smbd/globals.h

index c843f5a9e8e4925bf88f84837f1cb056ef27e223..4c02083fc46799b785d17877dffca0dc2c2c3687 100644 (file)
@@ -719,6 +719,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.