git.samba.org
/
abartlet
/
samba-debian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Imported Upstream version 4.0.0+dfsg1
[abartlet/samba-debian.git]
/
source3
/
registry
/
reg_cachehook.c
diff --git
a/source3/registry/reg_cachehook.c
b/source3/registry/reg_cachehook.c
index dc07b51944e9a64ca6be736b0d7152733bcd7224..1f269276aab60ac287ffb78b291700b10521878c 100644
(file)
--- 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);