Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
DATA_BLOB **pdata,
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_values = 0, max_valnamelen = 0, max_valbufsize = 0;
uint32_t secdescsize = 0;
WERROR result = WERR_OK;
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,
tmp_ctx,
key_hnd,