Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Commit

Permalink
Bugfix: On Linux, if a port is unusable for any reason (e.g. if pcap_…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
pstavirs committed Jan 14, 2016
1 parent 133a83f commit 4f6195b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/linuxport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ LinuxPort::~LinuxPort()
{
qDebug("In %s", __FUNCTION__);

allPorts_.removeAll(this);

if (monitor_->isRunning())
{
monitor_->stop();
Expand Down

0 comments on commit 4f6195b

Please sign in to comment.