Commit 2cb912e4 authored by Max Kellermann's avatar Max Kellermann

db/upnp: Namei() returns error when no object was found

Don't fail silently.
parent 91a513e8
...@@ -575,7 +575,9 @@ UpnpDatabase::Namei(ContentDirectoryService* server, ...@@ -575,7 +575,9 @@ UpnpDatabase::Namei(ContentDirectoryService* server,
odirent = dirent; odirent = dirent;
return true; return true;
} else { } else {
return true; error.Format(db_domain, DB_NOT_FOUND,
"No such object");
return false;
} }
} }
} }
...@@ -585,7 +587,8 @@ UpnpDatabase::Namei(ContentDirectoryService* server, ...@@ -585,7 +587,8 @@ UpnpDatabase::Namei(ContentDirectoryService* server,
break; break;
} }
return true; error.Format(db_domain, DB_NOT_FOUND, "No such object");
return false;
} }
// vpath is a parsed and writeable version of selection.uri. There is // vpath is a parsed and writeable version of selection.uri. There is
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment