From 4185ed03a3879ab708b004ef87b9ffaa6a9e6f3d Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sat, 22 Mar 2008 02:45:04 +0100 Subject: [PATCH] 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 --- source/libgpo/gpo_reg.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/libgpo/gpo_reg.c b/source/libgpo/gpo_reg.c index e48a8715d31..9c6df9caf38 100644 --- a/source/libgpo/gpo_reg.c +++ b/source/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) { -- 2.11.4.GIT