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:
parent
133a83f139
commit
4f6195b8ba
@ -81,6 +81,8 @@ LinuxPort::~LinuxPort()
|
||||
{
|
||||
qDebug("In %s", __FUNCTION__);
|
||||
|
||||
allPorts_.removeAll(this);
|
||||
|
||||
if (monitor_->isRunning())
|
||||
{
|
||||
monitor_->stop();
|
||||
|
Loading…
Reference in New Issue
Block a user