This is an automated email from the ASF dual-hosted git repository. maskit 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 43a9f9e Fix an runtime error on Fedora 26 43a9f9e is described below commit 43a9f9ec1f639ef7dc9d9de6e37daf252d617bbd Author: Masakazu Kitajo <mas...@apache.org> AuthorDate: Thu Aug 10 15:58:46 2017 +0900 Fix an runtime error on Fedora 26 Make sure that all information are extracted from a packet before std::move release it when passing the infomation and the packet at the same time. --- iocore/net/quic/QUICLossDetector.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/iocore/net/quic/QUICLossDetector.cc b/iocore/net/quic/QUICLossDetector.cc index f30d69a..4c10314 100644 --- a/iocore/net/quic/QUICLossDetector.cc +++ b/iocore/net/quic/QUICLossDetector.cc @@ -135,8 +135,11 @@ QUICLossDetector::on_packet_sent(std::unique_ptr<const QUICPacket> packet) type != QUICPacketType::ONE_RTT_PROTECTED_KEY_PHASE_1) { is_handshake = true; } - return this->_on_packet_sent(packet->packet_number(), packet->is_retransmittable(), is_handshake, packet->size(), - std::move(packet)); + + QUICPacketNumber packet_number = packet->packet_number(); + bool is_retransmittable = packet->is_retransmittable(); + size_t sent_bytes = packet->size(); + return this->_on_packet_sent(packet_number, is_retransmittable, is_handshake, sent_bytes, std::move(packet)); } void -- To stop receiving notification emails like this one, please contact ['"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>'].