diff options
author | Michael Adam <obnox@samba.org> | 2008-04-29 17:09:10 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-04-30 12:42:32 +0200 |
commit | 6b4ed4b8f349ec220c90f2b7aecec6436c355daf (patch) | |
tree | 98a26333791f0a11191431d8ebfdde88c6a5906f /source3 | |
parent | 5379dda0cd29b6bbb2f385d809299afc1c36aca5 (diff) | |
download | samba-6b4ed4b8f349ec220c90f2b7aecec6436c355daf.tar.gz samba-6b4ed4b8f349ec220c90f2b7aecec6436c355daf.tar.bz2 samba-6b4ed4b8f349ec220c90f2b7aecec6436c355daf.zip |
registry: use regdb_fetch_key_internal() in regdb_fetch_keys().
Michael
(This used to be commit 78f924ca05ecef9f586254c00908c1f12272c30c)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/registry/reg_backend_db.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c index 93bab672c8..9fa62fb7c4 100644 --- a/source3/registry/reg_backend_db.c +++ b/source3/registry/reg_backend_db.c @@ -733,7 +733,6 @@ static TDB_DATA regdb_fetch_key_internal(const char *key, TALLOC_CTX *mem_ctx) int regdb_fetch_keys(const char *key, REGSUBKEY_CTR *ctr) { WERROR werr; - char *path = NULL; uint32 num_items; uint8 *buf; uint32 buflen, len; @@ -745,14 +744,9 @@ int regdb_fetch_keys(const char *key, REGSUBKEY_CTR *ctr) DEBUG(11,("regdb_fetch_keys: Enter key => [%s]\n", key ? key : "NULL")); - path = normalize_reg_path(frame, key); - if (!path) { - goto fail; - } - ctr->seqnum = regdb_get_seqnum(); - value = dbwrap_fetch_bystring(regdb, frame, path); + value = regdb_fetch_key_internal(key, frame); buf = value.dptr; buflen = value.dsize; |