smbd:smb2: move op variable into scope of use in smb2_create_send
authorMichael Adam <obnox@samba.org>
Thu, 3 Mar 2016 08:27:42 +0000 (09:27 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 3 Mar 2016 12:09:25 +0000 (13:09 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/smbd/smb2_create.c

index d50b20c8746b4db22de52ee160029ecefd0d8b12..17bddc1266a9b0403273fd3537d26e675a2d0e3a 100644 (file)
@@ -474,7 +474,6 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx,
        struct smb2_create_blob *dhnq = NULL;
        struct smb2_create_blob *dh2q = NULL;
        struct smb2_create_blob *rqls = NULL;
-       struct smbXsrv_open *op = NULL;
        bool replay_operation = false;
 
        if(lp_fake_oplocks(SNUM(smb2req->tcon->compat))) {
@@ -670,6 +669,7 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx,
                struct smb2_lease *lease_ptr = NULL;
                ssize_t lease_len = -1;
                bool need_replay_cache = false;
+               struct smbXsrv_open *op = NULL;
 #if 0
                struct smb2_create_blob *svhdx = NULL;
 #endif