From 865c86bd327703be36db64a1b96e7ba96551928e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 14 Jun 2019 04:45:05 -0700 Subject: [PATCH] smbd: Use smbd_do_unlocking() in smb_set_posix_lock() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/smbd/trans2.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 3e364a80801..27eb6270f60 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -7338,12 +7338,13 @@ static NTSTATUS smb_set_posix_lock(connection_struct *conn, offset); if (lock_type == UNLOCK_LOCK) { - status = do_unlock(req->sconn->msg_ctx, - fsp, - smblctx, - count, - offset, - POSIX_LOCK); + struct smbd_lock_element l = { + .smblctx = smblctx, + .brltype = UNLOCK_LOCK, + .offset = offset, + .count = count, + }; + status = smbd_do_unlocking(req, fsp, 1, &l, POSIX_LOCK); return status; } -- 2.47.3