1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

s3:registry: return error when Key does not exist in regdb_fetch_values_internal()

This commit is contained in:
Michael Adam 2012-05-04 18:01:00 +02:00
parent b954d88dbe
commit cd98954c6d

View File

@ -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;
}