summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Henry <josephjah@gmail.com>2019-01-30 22:29:51 -0800
committerJoseph Henry <josephjah@gmail.com>2019-01-30 22:29:51 -0800
commit82a21d4b718478a74d124cd311a1e917955a1183 (patch)
tree2af86687f7fc76422b8663c96afc73605009c749
parent23996c7e6bec99b1534680f44c7abf6eef07e840 (diff)
downloadinfinitytier-82a21d4b718478a74d124cd311a1e917955a1183.tar.gz
infinitytier-82a21d4b718478a74d124cd311a1e917955a1183.zip
Bugfix for heap-use-after-free in concurrent packet processing code (manifests only after terminate() is called)
-rw-r--r--service/OneService.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/service/OneService.cpp b/service/OneService.cpp
index b8289d2b..b6673198 100644
--- a/service/OneService.cpp
+++ b/service/OneService.cpp
@@ -625,6 +625,8 @@ public:
break;
if (!pkt)
break;
+ if (!_run)
+ break;
const ZT_ResultCode rc = _node->processWirePacket(nullptr,pkt->now,pkt->sock,&(pkt->from),pkt->data,pkt->size,&_nextBackgroundTaskDeadline);
{