From: Volker Lendecke Date: Fri, 6 Aug 2021 10:12:58 +0000 (+0200) Subject: rpc_client: Simplify get_complete_frag_got_header() X-Git-Tag: ldb-2.5.0~856 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39c0e3ea2ea0644dbe827e243efb0c7350d904bb;p=thirdparty%2Fsamba.git rpc_client: Simplify get_complete_frag_got_header() Use tevent_req_oom() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index dd4e29addff..fcc5cd53f03 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -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; }