registry: use regdb_fetch_key_internal() in regdb_fetch_keys().
authorMichael Adam <obnox@samba.org>
Tue, 29 Apr 2008 15:09:10 +0000 (17:09 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 30 Apr 2008 10:42:32 +0000 (12:42 +0200)
Michael
(This used to be commit 78f924ca05ecef9f586254c00908c1f12272c30c)

source3/registry/reg_backend_db.c

index 93bab672c82bcd2b437c4d7799cb8befcc6a2639..9fa62fb7c47d8e64b2762d34355fb66ca9da01be 100644 (file)
@@ -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;