From e0ce71693488918edaeb167a0e1db107dcadb458 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 6 Feb 2021 15:56:52 +0100 Subject: [PATCH] rpcclient: talloc_stackframe() panics on failure Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/rpcclient/rpcclient.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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 */ -- 2.47.3