campaignd: Catch boost::bad_function_call exception
Isssue found by Coverity. This exception is thrown if an empty boost::function object is called. Theoretically should never happen unless the request handlers table wasn't initialized correctly/was tampered with.
This commit is contained in:
parent
786789b2d7
commit
2ac434dd2c
1 changed files with 3 additions and 0 deletions
|
@ -731,6 +731,9 @@ int main(int argc, char**argv)
|
|||
} catch(network::error& e) {
|
||||
std::cerr << "Aborted with network error: " << e.message << '\n';
|
||||
return 3;
|
||||
} catch(boost::bad_function_call& /*e*/) {
|
||||
std::cerr << "Bad request handler function call\n";
|
||||
return 4;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue