SQ: smb2_create persistent-wip
authorMichael Adam <obnox@samba.org>
Tue, 24 Oct 2017 22:43:08 +0000 (00:43 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 24 Oct 2017 22:43:08 +0000 (00:43 +0200)
source3/smbd/smb2_create.c

index f42fe7751e39686bc0feaa3982fde58b465defef..a5032404082d13a8b73a337fe800b85ad6c7a062 100644 (file)
@@ -834,6 +834,10 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx,
                         */
                        durable_requested = true;
 
+                       if (dh2q_flags & SMB2_DHANDLE_FLAG_PERSISTENT) {
+                               persistent_requested = true;
+                       }
+
                        if (persistent_requested) {
                                durable_timeout_msec = durable_v2_timeout;
                        }
@@ -846,10 +850,6 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx,
                                durable_timeout_msec = (60*1000);
                        }
 
-                       if (dh2q_flags & SMB2_DHANDLE_FLAG_PERSISTENT) {
-                               persistent_requested = true;
-                       }
-
                        /*
                         * Check for replay operation.
                         * Only consider it when we have dh2q.