summaryrefslogtreecommitdiffstats
path: root/source3/registry/reg_init_smbconf.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-13 14:18:06 +0200
committerMichael Adam <obnox@samba.org>2008-04-13 15:33:47 +0200
commit4b4306eb4a55ae1c705464e3220d963651ce9b91 (patch)
treecc6a0e809094ef03511f68551816bce6ea0d0d27 /source3/registry/reg_init_smbconf.c
parent2ffe46e24d369fabf2d1fe44dd91025466fcc502 (diff)
downloadsamba-4b4306eb4a55ae1c705464e3220d963651ce9b91.tar.gz
samba-4b4306eb4a55ae1c705464e3220d963651ce9b91.tar.xz
samba-4b4306eb4a55ae1c705464e3220d963651ce9b91.zip
registry: change reghook_cache_init() to return WERROR and use it in the callers.
Michael (This used to be commit 2f4ca62dce50225d67ba8643afba4199e1845c5f)
Diffstat (limited to 'source3/registry/reg_init_smbconf.c')
-rw-r--r--source3/registry/reg_init_smbconf.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/registry/reg_init_smbconf.c b/source3/registry/reg_init_smbconf.c
index 871141c1fda..bfc85afb22e 100644
--- a/source3/registry/reg_init_smbconf.c
+++ b/source3/registry/reg_init_smbconf.c
@@ -94,7 +94,13 @@ bool registry_init_smbconf(const char *keyname)
goto done;
}
- 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)));
+ goto done;
+ }
+
if (!reghook_cache_add(keyname, &smbconf_reg_ops)) {
DEBUG(1, ("Failed to add smbconf reghooks to reghook cache\n"));
goto done;