mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +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:
parent
9db63646c7
commit
e0ce716934
@ -783,14 +783,7 @@ static NTSTATUS do_cmd(struct cli_state *cli,
|
|||||||
NTSTATUS ntresult;
|
NTSTATUS ntresult;
|
||||||
WERROR wresult;
|
WERROR wresult;
|
||||||
|
|
||||||
TALLOC_CTX *mem_ctx;
|
TALLOC_CTX *mem_ctx = talloc_stackframe();
|
||||||
|
|
||||||
/* Create mem_ctx */
|
|
||||||
|
|
||||||
if (!(mem_ctx = talloc_stackframe())) {
|
|
||||||
DEBUG(0, ("talloc_init() failed\n"));
|
|
||||||
return NT_STATUS_NO_MEMORY;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Open pipe */
|
/* Open pipe */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user