summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-29 15:16:10 +0200
committerMichael Adam <obnox@samba.org>2008-04-30 12:42:31 +0200
commit9d933dedf931e77b9f084cb77cc7f8b90d67d35c (patch)
treec125310fd04d10e5dbc3352d57356b7e3873ec2c
parentf49474f58af6c98bd9b3d6fd1dd91f66ff482b37 (diff)
downloadsamba-9d933dedf931e77b9f084cb77cc7f8b90d67d35c.tar.gz
samba-9d933dedf931e77b9f084cb77cc7f8b90d67d35c.tar.bz2
samba-9d933dedf931e77b9f084cb77cc7f8b90d67d35c.zip
registry: use dbwrap_fetch_bystring() in regdb_fetch_keys().
instead of using regdb->fetch and constructing tdb data from the registry key string by hand. Michael (This used to be commit 87a58140f0073dfb5b18fb43655b255aebafbd02)
-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;