Browse Source

Bugfix for heap-use-after-free in concurrent packet processing code (manifests only after terminate() is called)

Joseph Henry 6 years ago
parent
commit
d0f78f1e03
1 changed files with 2 additions and 0 deletions
  1. 2 0
      service/OneService.cpp

+ 2 - 0
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);
 					{