summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-05-07 13:27:56 +0200
committerMichael Adam <obnox@samba.org>2008-05-08 18:29:09 +0200
commit00ce73850d72536f752eef950767607a096f4b49 (patch)
tree327bf61a61f2b737646893f5003099f1af58d35c
parent284bab74a7e93ec23979aad20d6b92363a93083e (diff)
downloadsamba-00ce73850d72536f752eef950767607a096f4b49.tar.gz
samba-00ce73850d72536f752eef950767607a096f4b49.tar.bz2
samba-00ce73850d72536f752eef950767607a096f4b49.zip
registry: check for existence of key in regdb_fetch_values() first.
This uses the new semantics for existence of a key. Michael (This used to be commit 56a58690d3ab2e01ed28388bd59424d3abc7a0d3)
-rw-r--r--source3/registry/reg_backend_db.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index 061ae1ccdb..5cbc83e3c4 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -977,6 +977,10 @@ int regdb_fetch_values( const char* key, REGVAL_CTR *values )
DEBUG(10,("regdb_fetch_values: Looking for value of key [%s] \n", key));
+ if (!regdb_key_exists(key)) {
+ goto done;
+ }
+
keystr = talloc_asprintf(ctx, "%s/%s", REG_VALUE_PREFIX, key);
if (!keystr) {
goto done;