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,6 +252,7 @@ _open_error:
|
|||||||
|
|
||||||
PcapPort::PortMonitor::~PortMonitor()
|
PcapPort::PortMonitor::~PortMonitor()
|
||||||
{
|
{
|
||||||
|
if (handle_)
|
||||||
pcap_close(handle_);
|
pcap_close(handle_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user