mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
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
This commit is contained in:
parent
05954fce42
commit
a03804c4fc
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user