Fix bad function call
This commit is contained in:
parent
834f7b9063
commit
4b216d6676
6 changed files with 168 additions and 140 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue