summaryrefslogtreecommitdiff
path: root/source4/lib/registry/reg_backend_nt4
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/registry/reg_backend_nt4')
-rw-r--r--source4/lib/registry/reg_backend_nt4/reg_backend_nt4.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/registry/reg_backend_nt4/reg_backend_nt4.c b/source4/lib/registry/reg_backend_nt4/reg_backend_nt4.c
index 74d7bbd3b1..9a3005457e 100644
--- a/source4/lib/registry/reg_backend_nt4/reg_backend_nt4.c
+++ b/source4/lib/registry/reg_backend_nt4/reg_backend_nt4.c
@@ -1575,11 +1575,12 @@ static WERROR nt_close_registry (REG_HANDLE *h)
static WERROR nt_open_registry (REG_HANDLE *h, const char *location, const char *credentials)
{
- REGF *regf = (REGF *)talloc_p(h->mem_ctx, REGF);
+ REGF *regf;
REGF_HDR *regf_hdr;
unsigned int regf_id, hbin_id;
HBIN_HDR *hbin_hdr;
+ regf = (REGF *)talloc_p(h->mem_ctx, REGF);
memset(regf, 0, sizeof(REGF));
regf->owner_sid_str = credentials;
h->backend_data = regf;