smbd: Use share_mode_entry's lease data in lease_match()
authorVolker Lendecke <vl@samba.org>
Wed, 10 Apr 2019 19:54:27 +0000 (21:54 +0200)
committerChristof Schmitt <cs@samba.org>
Sun, 14 Apr 2019 04:01:31 +0000 (04:01 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
source3/smbd/open.c

index 07f7c7ec194f12fd4ae78ec73bb52e44b2c74b6c..e480c97b563f071369887acb2d5957e19f75d309 100644 (file)
@@ -5026,7 +5026,7 @@ static NTSTATUS lease_match(connection_struct *conn,
                        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,
+                               if (!smb2_lease_key_equal(&e->lease_key,
                                                          lease_key)) {
                                        continue;
                                }