1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

rpc_client: talloc_stackframe() aborts 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-04-07 15:45:18 +00:00 committed by Jeremy Allison
parent 3a5c2582e1
commit 111118354a

View File

@ -711,7 +711,7 @@ NTSTATUS dcerpc_winreg_enumvals(TALLOC_CTX *mem_ctx,
DATA_BLOB **pdata, DATA_BLOB **pdata,
WERROR *pwerr) WERROR *pwerr)
{ {
TALLOC_CTX *tmp_ctx; TALLOC_CTX *tmp_ctx = talloc_stackframe();
uint32_t num_subkeys = 0, max_subkeylen = 0, max_classlen = 0; uint32_t num_subkeys = 0, max_subkeylen = 0, max_classlen = 0;
uint32_t num_values = 0, max_valnamelen = 0, max_valbufsize = 0; uint32_t num_values = 0, max_valnamelen = 0, max_valbufsize = 0;
uint32_t secdescsize = 0; uint32_t secdescsize = 0;
@ -727,14 +727,6 @@ NTSTATUS dcerpc_winreg_enumvals(TALLOC_CTX *mem_ctx,
WERROR result = WERR_OK; WERROR result = WERR_OK;
NTSTATUS status; NTSTATUS status;
tmp_ctx = talloc_stackframe();
if (tmp_ctx == NULL) {
status = NT_STATUS_NO_MEMORY;
*pwerr = ntstatus_to_werror(status);
return status;
}
status = dcerpc_winreg_QueryInfoKey(h, status = dcerpc_winreg_QueryInfoKey(h,
tmp_ctx, tmp_ctx,
key_hnd, key_hnd,