diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/smbconf/smbconf_reg.c | 2 | ||||
-rw-r--r-- | source3/registry/reg_init_smbconf.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/smbconf/smbconf_reg.c b/source3/lib/smbconf/smbconf_reg.c index 1f113c835f..77e6233cb4 100644 --- a/source3/lib/smbconf/smbconf_reg.c +++ b/source3/lib/smbconf/smbconf_reg.c @@ -418,8 +418,6 @@ static WERROR smbconf_reg_init(struct smbconf_ctx *ctx, const char *path) werr = WERR_REG_IO_FAILURE; goto done; } - /* we know registry_init_smbconf() leaves registry open */ - regdb_close(); done: return werr; diff --git a/source3/registry/reg_init_smbconf.c b/source3/registry/reg_init_smbconf.c index 1b17852a7a..71f21f85ec 100644 --- a/source3/registry/reg_init_smbconf.c +++ b/source3/registry/reg_init_smbconf.c @@ -95,6 +95,8 @@ bool registry_init_smbconf(void) goto done; } + regdb_close(); + ret = true; done: |