1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

rpcclient: talloc_stackframe() panics on failure

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2021-02-06 15:56:52 +01:00 committed by Jeremy Allison
parent 9db63646c7
commit e0ce716934

View File

@ -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 */