summaryrefslogtreecommitdiff
path: root/source3/smbd/open.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2018-09-19 16:26:09 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-10-25 21:44:17 +0200
commita03804c4fcd47ef7c077864c2c469396645ebd7a (patch)
tree2165cf06da9e03f04ad4b653615b2f9f9d57696b /source3/smbd/open.c
parent05954fce4265bab68d78bb335e5b8d63259ce9f4 (diff)
downloadsamba-a03804c4fcd47ef7c077864c2c469396645ebd7a.tar.gz
s3:smbd: Move a variable declaration closer to its use
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Thu Oct 25 21:44:17 CEST 2018 on sn-devel-144
Diffstat (limited to 'source3/smbd/open.c')
-rw-r--r--source3/smbd/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 6bfd5ba1371..82c640e5e9a 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -4962,13 +4962,13 @@ static NTSTATUS lease_match(connection_struct *conn,
for (j=0; j<d->num_share_modes; j++) {
struct share_mode_entry *e = &d->share_modes[j];
uint32_t e_lease_type = get_lease_type(d, e);
- struct share_mode_lease *l = NULL;
if (share_mode_stale_pid(d, j)) {
continue;
}
if (e->op_type == LEASE_OPLOCK) {
+ struct share_mode_lease *l = NULL;
l = &lck->data->leases[e->lease_idx];
if (!smb2_lease_key_equal(&l->lease_key,
lease_key)) {