From: Michael Adam Date: Fri, 4 May 2012 16:01:00 +0000 (+0200) Subject: s3:registry: return error when Key does not exist in regdb_fetch_values_internal() X-Git-Tag: samba-4.0.0alpha21~337 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cd98954c6dc6eba8bd66b408658486e869dca31d;p=thirdparty%2Fsamba.git s3:registry: return error when Key does not exist in regdb_fetch_values_internal() --- diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c index ed7fe4d116e..a5bb5d7943a 100644 --- a/source3/registry/reg_backend_db.c +++ b/source3/registry/reg_backend_db.c @@ -1886,6 +1886,9 @@ static int regdb_fetch_values_internal(struct db_context *db, const char* key, DEBUG(10,("regdb_fetch_values: Looking for values of key [%s]\n", key)); if (!regdb_key_exists(db, key)) { + DEBUG(10, ("regb_fetch_values: key [%s] does not exist\n", + key)); + ret = -1; goto done; }