From 89883e20789b14ec2aab81ab036cf87c34d34f8b Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 9 Feb 2015 14:50:19 -0500 Subject: [PATCH] don't look for session if a packet is from same endpoint as previous --- SSU.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SSU.cpp b/SSU.cpp index bb515ac9..51eccf83 100644 --- a/SSU.cpp +++ b/SSU.cpp @@ -215,7 +215,7 @@ namespace transport for (auto it1: packets) { auto packet = it1; - if (session && session->GetRemoteEndpoint () != packet->from) // we received packet for other session than previous + if (!session || session->GetRemoteEndpoint () != packet->from) // we received packet for other session than previous { auto it = m_Sessions.find (packet->from); if (it != m_Sessions.end ())