summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-12-26 22:41:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:07:39 -0500
commitb0e6ce645a433c8972eb131cbc4cf0aed3ce1055 (patch)
tree53fdfa592da9ee9b6719cbad2f91b5bc0d506241 /source4/lib
parent77529ae7926e2d299e7703c5f1b84cb849b4563b (diff)
downloadsamba-b0e6ce645a433c8972eb131cbc4cf0aed3ce1055.tar.gz
samba-b0e6ce645a433c8972eb131cbc4cf0aed3ce1055.tar.bz2
samba-b0e6ce645a433c8972eb131cbc4cf0aed3ce1055.zip
r4371: Add "Create Key", "Delete Key" and "Delete Value" buttons.
gregedit now can do the same things as regedt32 except for finding data and setting values. (and a few segfaults...) (This used to be commit ada16f31e4da919731767ce31000aa270f22ffd5)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/registry/reg_backend_ldb.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source4/lib/registry/reg_backend_ldb.c b/source4/lib/registry/reg_backend_ldb.c
index f7b743fd72..ffb9215cf0 100644
--- a/source4/lib/registry/reg_backend_ldb.c
+++ b/source4/lib/registry/reg_backend_ldb.c
@@ -237,12 +237,13 @@ static WERROR ldb_open_hive(struct registry_hive *hive, struct registry_key **k)
if (!hive->location) return WERR_INVALID_PARAM;
wrap = ldb_wrap_connect(hive, hive->location, 0, NULL);
- c = wrap->ldb;
-
- if(!c) {
- DEBUG(1, ("ldb_open_hive: %s\n", ldb_errstring(hive->backend_data)));
+ if(!wrap) {
+ DEBUG(1, ("ldb_open_hive: unable to connect\n"));
return WERR_FOOBAR;
}
+
+ c = wrap->ldb;
+
ldb_set_debug_stderr(c);
hive->backend_data = c;