smbd: Use tevent_req_simple_recv_ntstatus() in smbd_smb2_lock_recv()
authorVolker Lendecke <vl@samba.org>
Tue, 28 May 2019 15:00:30 +0000 (17:00 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 28 May 2019 20:27:15 +0000 (20:27 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_lock.c

index a05470e52e4a923dd162afbb8a3a9e85eeacaeec..5aa0d657cfb19f66aef498f915809fcbf30922e9 100644 (file)
@@ -379,15 +379,7 @@ static struct tevent_req *smbd_smb2_lock_send(TALLOC_CTX *mem_ctx,
 
 static NTSTATUS smbd_smb2_lock_recv(struct tevent_req *req)
 {
-       NTSTATUS status;
-
-       if (tevent_req_is_nterror(req, &status)) {
-               tevent_req_received(req);
-               return status;
-       }
-
-       tevent_req_received(req);
-       return NT_STATUS_OK;
+       return tevent_req_simple_recv_ntstatus(req);
 }
 
 /****************************************************************