summaryrefslogtreecommitdiff
path: root/source3/registry/reg_init_smbconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/registry/reg_init_smbconf.c')
-rw-r--r--source3/registry/reg_init_smbconf.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/registry/reg_init_smbconf.c b/source3/registry/reg_init_smbconf.c
index 670f7a9c5d..871141c1fd 100644
--- a/source3/registry/reg_init_smbconf.c
+++ b/source3/registry/reg_init_smbconf.c
@@ -86,10 +86,14 @@ bool registry_init_smbconf(const char *keyname)
dos_errstr(werr)));
goto done;
}
- if (!init_registry_key(keyname)) {
- DEBUG(1, ("Failed to initialize registry key '%s'\n", keyname));
+
+ werr = init_registry_key(keyname);
+ if (!W_ERROR_IS_OK(werr)) {
+ DEBUG(1, ("Failed to initialize registry key '%s': %s\n",
+ keyname, dos_errstr(werr)));
goto done;
}
+
reghook_cache_init();
if (!reghook_cache_add(keyname, &smbconf_reg_ops)) {
DEBUG(1, ("Failed to add smbconf reghooks to reghook cache\n"));