diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/registry/reg_backend_db.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c index 31ada0c85c..93bab672c8 100644 --- a/source3/registry/reg_backend_db.c +++ b/source3/registry/reg_backend_db.c @@ -713,6 +713,18 @@ fail: } +static TDB_DATA regdb_fetch_key_internal(const char *key, TALLOC_CTX *mem_ctx) +{ + char *path = NULL; + + path = normalize_reg_path(mem_ctx, key); + if (!path) { + return make_tdb_data(NULL, 0); + } + + return dbwrap_fetch_bystring(regdb, mem_ctx, path); +} + /*********************************************************************** Retrieve an array of strings containing subkeys. Memory should be released by the caller. |