From: Volker Lendecke Date: Sat, 6 Feb 2021 14:56:52 +0000 (+0100) Subject: rpcclient: talloc_stackframe() panics on failure X-Git-Tag: tevent-0.11.0~1627 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e0ce71693488918edaeb167a0e1db107dcadb458;p=thirdparty%2Fsamba.git rpcclient: talloc_stackframe() panics on failure Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index a38f69f5592..e2a9aa97c32 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -783,14 +783,7 @@ static NTSTATUS do_cmd(struct cli_state *cli, NTSTATUS ntresult; WERROR wresult; - TALLOC_CTX *mem_ctx; - - /* Create mem_ctx */ - - if (!(mem_ctx = talloc_stackframe())) { - DEBUG(0, ("talloc_init() failed\n")); - return NT_STATUS_NO_MEMORY; - } + TALLOC_CTX *mem_ctx = talloc_stackframe(); /* Open pipe */