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,
odirent = dirent;
return true;
} else {
return true;
error.Format(db_domain, DB_NOT_FOUND,
"No such object");
return false;
}
}
}
......@@ -585,7 +587,8 @@ UpnpDatabase::Namei(ContentDirectoryService* server,
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
......
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