diff options
author | Michael Adam <obnox@samba.org> | 2012-05-04 18:01:00 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-05-05 02:22:00 +0200 |
commit | cd98954c6dc6eba8bd66b408658486e869dca31d (patch) | |
tree | f66cc3e4f663afbee646cf5d891c08deb3c29da2 | |
parent | b954d88dbe6bd8bbc69a88e41a00b59778c289da (diff) | |
download | samba-cd98954c6dc6eba8bd66b408658486e869dca31d.tar.gz samba-cd98954c6dc6eba8bd66b408658486e869dca31d.tar.bz2 samba-cd98954c6dc6eba8bd66b408658486e869dca31d.zip |
s3:registry: return error when Key does not exist in regdb_fetch_values_internal()
-rw-r--r-- | source3/registry/reg_backend_db.c | 3 |
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; } |