summaryrefslogtreecommitdiff
path: root/source4/lib/registry/common
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-10-28 23:06:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:04:57 -0500
commit479bf22c813501f040adf7b6267b961748baa63f (patch)
treede1bbae68ca012671b2680ba02c973c4a9f71cc3 /source4/lib/registry/common
parent858f1763229a8da808a7473f565382a4b2924917 (diff)
downloadsamba-479bf22c813501f040adf7b6267b961748baa63f.tar.gz
samba-479bf22c813501f040adf7b6267b961748baa63f.tar.bz2
samba-479bf22c813501f040adf7b6267b961748baa63f.zip
r3340: Various fixes in the registry code. Implement the EnumKey call
in the server. (This used to be commit da65a248c292a90342e1394ee4132ef2c7afd3c8)
Diffstat (limited to 'source4/lib/registry/common')
-rw-r--r--source4/lib/registry/common/reg_interface.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/lib/registry/common/reg_interface.c b/source4/lib/registry/common/reg_interface.c
index 16edadfcbb..6237a788b7 100644
--- a/source4/lib/registry/common/reg_interface.c
+++ b/source4/lib/registry/common/reg_interface.c
@@ -191,7 +191,10 @@ WERROR reg_import_hive(struct registry_context *h, const char *backend, const ch
if(!W_ERROR_IS_OK(werr)) return werr;
- if(!ret->root) return WERR_GENERAL_FAILURE;
+ if(!ret->root) {
+ DEBUG(0, ("Backend %s didn't provide root key!\n", backend));
+ return WERR_GENERAL_FAILURE;
+ }
ret->root->hive = ret;
ret->root->name = NULL;