]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
rpc_client: Simplify get_complete_frag_got_header()
authorVolker Lendecke <vl@samba.org>
Fri, 6 Aug 2021 10:12:31 +0000 (12:12 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 24 Aug 2021 17:32:29 +0000 (17:32 +0000)
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>
source3/rpc_client/cli_pipe.c

index fcc5cd53f03337d901c9b42a6310a2bfadbc0346..a94620dc52f4b100d19972a902ce04bf212f42f5 100644 (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;
        }