summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-03-24 16:41:35 +0100
committerJelmer Vernooij <jelmer@samba.org>2012-03-24 16:41:35 +0100
commit6f1b735cc2972ecd3d2acb30ff834273f08628fe (patch)
tree9a2545b0aebef9e867f57526c84c4710a06c9876 /source3/registry
parent71d41a015add73e0fb355dd9713e99febd71d46f (diff)
downloadsamba-6f1b735cc2972ecd3d2acb30ff834273f08628fe.tar.gz
samba-6f1b735cc2972ecd3d2acb30ff834273f08628fe.tar.bz2
samba-6f1b735cc2972ecd3d2acb30ff834273f08628fe.zip
adt_tree: Avoid WERROR.
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_cachehook.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/registry/reg_cachehook.c b/source3/registry/reg_cachehook.c
index dc07b51944..1f269276aa 100644
--- a/source3/registry/reg_cachehook.c
+++ b/source3/registry/reg_cachehook.c
@@ -93,7 +93,10 @@ WERROR reghook_cache_add(const char *keyname, struct registry_ops *ops)
DEBUG(10, ("reghook_cache_add: Adding ops %p for key [%s]\n",
(void *)ops, key));
- werr = pathtree_add(cache_tree, key, ops);
+ if (!pathtree_add(cache_tree, key, ops))
+ werr = WERR_NOMEM;
+ else
+ werr = WERR_OK;
done:
TALLOC_FREE(key);