SQUASH - s3:smbd:smb2 - move a variable to reduce scope
authorMichael Adam <obnox@samba.org>
Fri, 2 Mar 2012 21:41:17 +0000 (22:41 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 10 May 2012 16:42:03 +0000 (18:42 +0200)
source3/smbd/smb2_create.c

index bd407fdadf03745c2eca34f31ff058ba625e9133..cb72477cb41ab42a4389dec61c97f276efca9bf0 100644 (file)
@@ -657,7 +657,6 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx,
        struct timespec write_time_ts;
        struct smb2_create_blobs out_context_blobs;
        int requested_oplock_level;
-       bool do_durable_reconnect = false;
        struct smbXsrv_open *op = NULL;
 
        ZERO_STRUCT(out_context_blobs);
@@ -745,6 +744,7 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx,
                uint64_t allocation_size = 0;
                struct smb2_create_blob *twrp = NULL;
                struct smb2_create_blob *qfid = NULL;
+               bool do_durable_reconnect = false;
 
                exta = smb2_create_blob_find(&in_context_blobs,
                                             SMB2_CREATE_TAG_EXTA);