mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
telemetry/Manager: Check RegisterFd() return value
Please coverity.
This commit is contained in:
parent
351f16c160
commit
4fe9580a7e
1 changed files with 3 additions and 1 deletions
|
@ -162,7 +162,9 @@ void Manager::InitPostScript() {
|
|||
});
|
||||
#endif
|
||||
|
||||
iosource_mgr->RegisterFd(collector_flare.FD(), this);
|
||||
if ( ! iosource_mgr->RegisterFd(collector_flare.FD(), this) ) {
|
||||
reporter->FatalError("Failed to register telemetry collector descriptor");
|
||||
}
|
||||
}
|
||||
|
||||
void Manager::Terminate() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue