libgpo: open the registry in gp_init_reg_ctx().
authorMichael Adam <obnox@samba.org>
Sat, 22 Mar 2008 01:45:04 +0000 (02:45 +0100)
committerMichael Adam <obnox@samba.org>
Sat, 22 Mar 2008 01:45:04 +0000 (02:45 +0100)
I forgot the regdb_open() call: registry_init_basic() closes
the registry in the end... sorry.

Michael

source/libgpo/gpo_reg.c

index e48a8715d311229b4c07e06b8be67c3ecaab8907..9c6df9caf3811f117c43c5f72a6c596992e10bbb 100644 (file)
@@ -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) {