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:
parent
9db63646c7
commit
e0ce716934
@ -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 */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user