diff options
author | Joseph Henry <josephjah@gmail.com> | 2019-01-30 22:29:51 -0800 |
---|---|---|
committer | Joseph Henry <josephjah@gmail.com> | 2019-01-30 22:29:51 -0800 |
commit | 82a21d4b718478a74d124cd311a1e917955a1183 (patch) | |
tree | 2af86687f7fc76422b8663c96afc73605009c749 | |
parent | 23996c7e6bec99b1534680f44c7abf6eef07e840 (diff) | |
download | infinitytier-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.cpp | 2 |
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); { |