Fix for segfault when a port failed to open due to any reason
Fixes issue 64
This commit is contained in:
parent
0d253cdb09
commit
87ee8244fc
@ -252,7 +252,8 @@ _open_error:
|
||||
|
||||
PcapPort::PortMonitor::~PortMonitor()
|
||||
{
|
||||
pcap_close(handle_);
|
||||
if (handle_)
|
||||
pcap_close(handle_);
|
||||
}
|
||||
|
||||
void PcapPort::PortMonitor::run()
|
||||
|
Loading…
Reference in New Issue
Block a user