summaryrefslogtreecommitdiff
path: root/source3/registry/reg_init_basic.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/registry/reg_init_basic.c')
-rw-r--r--source3/registry/reg_init_basic.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/registry/reg_init_basic.c b/source3/registry/reg_init_basic.c
index e72765bdf2..72ab9d1e65 100644
--- a/source3/registry/reg_init_basic.c
+++ b/source3/registry/reg_init_basic.c
@@ -36,7 +36,12 @@ bool registry_init_basic(void)
}
regdb_close();
- reghook_cache_init();
+ werr = reghook_cache_init();
+ if (!W_ERROR_IS_OK(werr)) {
+ DEBUG(1, ("Failed to initialize the reghook cache: %s\n",
+ dos_errstr(werr)));
+ return false;
+ }
return true;
}