This is an automated email from the ASF dual-hosted git repository.

scw00 pushed a commit to branch quic-latest
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/quic-latest by this push:
     new 9533aed  QUIC: Fixed test_QUICLossDetector crash
9533aed is described below

commit 9533aede1b808ba16d3b31d4af78a0cf465adff2
Author: scw00 <sc...@apache.org>
AuthorDate: Mon Mar 11 10:43:36 2019 +0800

    QUIC: Fixed test_QUICLossDetector crash
---
 iocore/net/quic/QUICLossDetector.cc | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/iocore/net/quic/QUICLossDetector.cc 
b/iocore/net/quic/QUICLossDetector.cc
index 4cb727c..7f9915e 100644
--- a/iocore/net/quic/QUICLossDetector.cc
+++ b/iocore/net/quic/QUICLossDetector.cc
@@ -141,13 +141,14 @@ QUICLossDetector::on_packet_sent(QUICPacketInfoUPtr 
packet_info, bool in_flight)
 
   SCOPED_MUTEX_LOCK(lock, this->_loss_detection_mutex, this_ethread());
 
-  bool ack_eliciting         = packet_info->ack_eliciting;
-  bool is_crypto_packet      = packet_info->is_crypto_packet;
-  ink_hrtime now             = packet_info->time_sent;
-  size_t sent_bytes          = packet_info->sent_bytes;
-  this->_largest_sent_packet = packet_info->packet_number;
-
-  this->_add_to_sent_packet_list(packet_info->packet_number, 
std::move(packet_info));
+  QUICPacketNumber packet_number = packet_info->packet_number;
+  bool ack_eliciting             = packet_info->ack_eliciting;
+  bool is_crypto_packet          = packet_info->is_crypto_packet;
+  ink_hrtime now                 = packet_info->time_sent;
+  size_t sent_bytes              = packet_info->sent_bytes;
+  this->_largest_sent_packet     = packet_info->packet_number;
+
+  this->_add_to_sent_packet_list(packet_number, std::move(packet_info));
 
   if (in_flight) {
     if (is_crypto_packet) {

Reply via email to