summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_backend_db.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index bd28eb3241..7d7f5c8eec 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -728,7 +728,6 @@ int regdb_fetch_keys(const char *key, REGSUBKEY_CTR *ctr)
int i;
fstring subkeyname;
int ret = -1;
- int dbret = -1;
TALLOC_CTX *frame = talloc_stackframe();
TDB_DATA value;
@@ -748,10 +747,7 @@ int regdb_fetch_keys(const char *key, REGSUBKEY_CTR *ctr)
ctr->seqnum = regdb_get_seqnum();
- dbret = regdb->fetch(regdb, frame, string_term_tdb_data(path), &value);
- if (dbret != 0) {
- goto fail;
- }
+ value = dbwrap_fetch_bystring(regdb, frame, path);
buf = value.dptr;
buflen = value.dsize;