Fix bad function call

This commit is contained in:
loki 2020-02-08 23:41:27 +01:00
commit 4b216d6676
6 changed files with 168 additions and 140 deletions

View file

@ -48,7 +48,7 @@ int proc_t::execute(int app_id) {
_app_id = -1;
}
if(app_id >= _apps.size()) {
if(app_id < 0 || app_id >= _apps.size()) {
BOOST_LOG(error) << "Couldn't find app with ID ["sv << app_id << ']';
return 404;