summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-29 15:17:54 +0200
committerMichael Adam <obnox@samba.org>2008-04-30 12:42:31 +0200
commitcaba2d3a648d13a9de680197f1a9ebd09c905cec (patch)
tree5e8c7fd5961fd4959b766c8ddff5fd358f27e31d
parent9d933dedf931e77b9f084cb77cc7f8b90d67d35c (diff)
downloadsamba-caba2d3a648d13a9de680197f1a9ebd09c905cec.tar.gz
registry: use dbwrap_fetch_bystring() in regdb_fetch_values().
Michael (This used to be commit 569f9844e9d35324cf9a3a3094cd9791918a1441)
-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 7d7f5c8eecc..95cca029c49 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -866,7 +866,6 @@ int regdb_fetch_values( const char* key, REGVAL_CTR *values )
char *keystr = NULL;
TALLOC_CTX *ctx = talloc_stackframe();
int ret = 0;
- int dbret = -1;
TDB_DATA value;
DEBUG(10,("regdb_fetch_values: Looking for value of key [%s] \n", key));
@@ -882,10 +881,7 @@ int regdb_fetch_values( const char* key, REGVAL_CTR *values )
values->seqnum = regdb_get_seqnum();
- dbret = regdb->fetch(regdb, ctx, string_term_tdb_data(keystr), &value);
- if (dbret != 0) {
- goto done;
- }
+ value = dbwrap_fetch_bystring(regdb, ctx, keystr);
if (!value.dptr) {
/* all keys have zero values by default */