1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

rpc_client: Simplify get_complete_frag_got_header()

tevent_req_nterror() returns a bool, no separate check required

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2021-08-06 12:12:31 +02:00 committed by Jeremy Allison
parent 39c0e3ea2e
commit 7df7bf44e5

View File

@ -325,8 +325,7 @@ static void get_complete_frag_got_header(struct tevent_req *subreq)
status = rpc_read_recv(subreq);
TALLOC_FREE(subreq);
if (!NT_STATUS_IS_OK(status)) {
tevent_req_nterror(req, status);
if (tevent_req_nterror(req, status)) {
return;
}