summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-05-04 18:01:00 +0200
committerMichael Adam <obnox@samba.org>2012-05-05 02:22:00 +0200
commitcd98954c6dc6eba8bd66b408658486e869dca31d (patch)
treef66cc3e4f663afbee646cf5d891c08deb3c29da2 /source3
parentb954d88dbe6bd8bbc69a88e41a00b59778c289da (diff)
downloadsamba-cd98954c6dc6eba8bd66b408658486e869dca31d.tar.gz
samba-cd98954c6dc6eba8bd66b408658486e869dca31d.tar.bz2
samba-cd98954c6dc6eba8bd66b408658486e869dca31d.zip
s3:registry: return error when Key does not exist in regdb_fetch_values_internal()
Diffstat (limited to 'source3')
-rw-r--r--source3/registry/reg_backend_db.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index ed7fe4d116..a5bb5d7943 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;
}