]> 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:58 +0000 (12:12 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 24 Aug 2021 17:32:29 +0000 (17:32 +0000)
Use tevent_req_oom()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpc_client/cli_pipe.c

index dd4e29addffea89187a28bd9a69dd934fc4c032c..fcc5cd53f03337d901c9b42a6310a2bfadbc0346 100644 (file)
@@ -337,7 +337,7 @@ static void get_complete_frag_got_header(struct tevent_req *subreq)
        }
 
        if (!data_blob_realloc(NULL, state->pdu, state->frag_len)) {
-               tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
+               tevent_req_oom(req);
                return;
        }