summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/registry/reg_init_smbconf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/registry/reg_init_smbconf.c b/source3/registry/reg_init_smbconf.c
index 71f21f85ec..f76cc2f051 100644
--- a/source3/registry/reg_init_smbconf.c
+++ b/source3/registry/reg_init_smbconf.c
@@ -95,10 +95,9 @@ bool registry_init_smbconf(void)
goto done;
}
- regdb_close();
-
ret = true;
done:
+ regdb_close();
return ret;
}