From 888a19fdba020706224c168bbe697fb31f794d23 Mon Sep 17 00:00:00 2001 From: orignal Date: Thu, 11 Sep 2014 08:03:25 -0400 Subject: [PATCH] handle out-of-sequence fragment for first fragment --- TunnelEndpoint.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/TunnelEndpoint.cpp b/TunnelEndpoint.cpp index d242ab78..ca46199a 100644 --- a/TunnelEndpoint.cpp +++ b/TunnelEndpoint.cpp @@ -121,8 +121,9 @@ namespace tunnel if (!isFollowOnFragment) // create new incomlete message { m.nextFragmentNum = 1; - HandleOutOfSequenceFragment (msgID, m); - m_IncompleteMessages[msgID] = m; + auto& msg = m_IncompleteMessages[msgID]; + msg = m; + HandleOutOfSequenceFragment (msgID, msg); } else {