summaryrefslogtreecommitdiffstats
path: root/source/libgpo/gpo_reg.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-03-22 02:45:04 +0100
committerMichael Adam <obnox@samba.org>2008-03-22 02:45:04 +0100
commit4185ed03a3879ab708b004ef87b9ffaa6a9e6f3d (patch)
tree14a4ae5186b69a0c796eae8f8fdc152052c3e73e /source/libgpo/gpo_reg.c
parent10ae8accb486956ebb1638cee540868a11623b11 (diff)
downloadsamba-4185ed03a3879ab708b004ef87b9ffaa6a9e6f3d.tar.gz
samba-4185ed03a3879ab708b004ef87b9ffaa6a9e6f3d.tar.xz
samba-4185ed03a3879ab708b004ef87b9ffaa6a9e6f3d.zip
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
Diffstat (limited to 'source/libgpo/gpo_reg.c')
-rw-r--r--source/libgpo/gpo_reg.c5
1 files changed, 5 insertions, 0 deletions
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) {