smbd: Use "fsp->lease" instead of "lease"
authorVolker Lendecke <vl@samba.org>
Fri, 24 May 2019 13:50:02 +0000 (15:50 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 28 May 2019 20:27:15 +0000 (20:27 +0000)
See the SMB_ASSERT a few lines above. Why this? It makes the next
commit more obvious.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/oplock.c

index b99b9cb4f0888abd0a8780c7a6158776a1650cc1..1c7a4c8d29de90b9a90aa773a4db4a6e3fe8fb6c 100644 (file)
@@ -391,7 +391,7 @@ static void lease_timeout_handler(struct tevent_context *ctx,
                return;
        }
 
-       fsp_lease_update(lck, fsp_client_guid(fsp), lease);
+       fsp_lease_update(lck, fsp_client_guid(fsp), fsp->lease);
 
        if (lease->lease.lease_epoch != old_epoch) {
                /*