db/upnp: Namei() returns error when no object was found
Don't fail silently.
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user