Bugfix: On Linux, if a port is unusable for any reason (e.g. if pcap_open failed), it is deleted - at this time, it should also be removed from the allPorts_ list otherwise subsequent traversal of the list accesses the freed LinuxPort object leading to crash.

Fixes #174
This commit is contained in:
Srivats P 2016-01-14 20:09:42 +05:30
parent 133a83f139
commit 4f6195b8ba

View File

@ -81,6 +81,8 @@ LinuxPort::~LinuxPort()
{
qDebug("In %s", __FUNCTION__);
allPorts_.removeAll(this);
if (monitor_->isRunning())
{
monitor_->stop();