From: Michael Adam Date: Wed, 7 May 2008 11:27:56 +0000 (+0200) Subject: registry: check for existence of key in regdb_fetch_values() first. X-Git-Tag: samba-4.0.0alpha6~801^2~1476 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=00ce73850d72536f752eef950767607a096f4b49;p=thirdparty%2Fsamba.git 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) --- diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c index 061ae1ccdb1..5cbc83e3c4d 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;