Преглед на файлове

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

Joseph Henry преди 6 години
родител
ревизия
82a21d4b71
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  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);
 					{