diff options
author | Volker Lendecke <vl@samba.org> | 2019-08-10 15:01:24 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-08-19 23:14:38 +0000 |
commit | 28868d24576dbd437329b7a59104cb7c15ee4624 (patch) | |
tree | 185a146d14e28f051ee5222e7f135e7329f49f66 | |
parent | 021e2d01e68714556bd811ff2bc2a04c71a6c1fd (diff) | |
download | samba-28868d24576dbd437329b7a59104cb7c15ee4624.tar.gz |
smbd: Simplify delay_for_oplock()
Use is_same_lease()
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
-rw-r--r-- | source3/smbd/open.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 262143fcdab..cea3d882637 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -1888,11 +1888,7 @@ static bool delay_for_oplock(files_struct *fsp, NTSTATUS status; if (lease != NULL) { - bool our_lease = smb2_lease_equal( - fsp_client_guid(fsp), - &lease->lease_key, - &e->client_guid, - &e->lease_key); + bool our_lease = is_same_lease(fsp, e, lease); if (our_lease) { DBG_DEBUG("Ignoring our own lease\n"); continue; |