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 119062f Remove a wrong assert
119062f is described below
commit 119062ff2bcc3dc0ae3ce911b2e97d4eb0bb82c9
Author: Masakazu Kitajo <[email protected]>
AuthorDate: Thu Jan 31 15:21:51 2019 +0900
Remove a wrong assert
Packet number can be 3, and the following switch statement takes care the
error
---
iocore/net/quic/QUICPacket.cc | 2 --
1 file changed, 2 deletions(-)
diff --git a/iocore/net/quic/QUICPacket.cc b/iocore/net/quic/QUICPacket.cc
index 817c0ca..5ef598f 100644
--- a/iocore/net/quic/QUICPacket.cc
+++ b/iocore/net/quic/QUICPacket.cc
@@ -949,8 +949,6 @@ QUICPacket::calc_packet_number_len(QUICPacketNumber num,
QUICPacketNumber base)
bool
QUICPacket::encode_packet_number(QUICPacketNumber &dst, QUICPacketNumber src,
size_t len)
{
- ink_assert(len == 1 || len == 2 || len == 4);
-
uint64_t mask = 0;
switch (len) {
case 1: