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

Don't fail silently.
This commit is contained in:
Max Kellermann 2014-01-14 12:34:49 +01:00
parent 91a513e87d
commit 2cb912e4f4
1 changed files with 5 additions and 2 deletions

View File

@ -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,
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