From 7290b6a8fc4d49a1ffafab8b1ccc9f8d5c1df026 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sat, 22 Mar 2008 02:45:04 +0100 Subject: libgpo: open the registry in gp_init_reg_ctx(). I forgot the regdb_open() call: registry_init_basic() closes the registry in the end... sorry. Michael (This used to be commit 4185ed03a3879ab708b004ef87b9ffaa6a9e6f3d) --- source3/libgpo/gpo_reg.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3') diff --git a/source3/libgpo/gpo_reg.c b/source3/libgpo/gpo_reg.c index e48a8715d3..9c6df9caf3 100644 --- a/source3/libgpo/gpo_reg.c +++ b/source3/libgpo/gpo_reg.c @@ -77,6 +77,11 @@ WERROR gp_init_reg_ctx(TALLOC_CTX *mem_ctx, return WERR_NOMEM; } + werr = regdb_open(); + if (!W_ERROR_IS_OK(werr)) { + return werr; + } + if (initial_path) { tmp_ctx->path = talloc_strdup(mem_ctx, initial_path); if (!tmp_ctx->path) { -- cgit