mirror of
https://github.com/samba-team/samba.git
synced 2025-03-03 12:58:35 +03:00
registry: use dbwrap_fetch_bystring() in regdb_fetch_values().
Michael (This used to be commit 569f9844e9d35324cf9a3a3094cd9791918a1441)
This commit is contained in:
parent
9d933dedf9
commit
caba2d3a64
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user