Skip to content

Commit

Permalink
Avoid unnecessary QUIC CID randomization
Browse files Browse the repository at this point in the history
  • Loading branch information
maskit committed Sep 16, 2020
1 parent 42e8898 commit 2a9887f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion iocore/net/quic/QUICPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ class QUICShortHeaderPacketR : public QUICPacketR
QUICKeyPhase _key_phase;
QUICPacketNumber _packet_number;
int _packet_number_len;
QUICConnectionId _dcid;
QUICConnectionId _dcid = QUICConnectionId::ZERO();
};

class QUICStatelessResetPacket : public QUICPacket
Expand Down
4 changes: 2 additions & 2 deletions iocore/net/quic/QUICPacketFactory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ QUICPacketFactory::create(uint8_t *packet_buf, UDPConnection *udp_con, IpEndpoin

QUICPacketType type;
QUICVersion version;
QUICConnectionId dcid;
QUICConnectionId scid;
QUICConnectionId dcid = QUICConnectionId::ZERO();
QUICConnectionId scid = QUICConnectionId::ZERO();
QUICPacketNumber packet_number;
QUICKeyPhase key_phase;

Expand Down

0 comments on commit 2a9887f

Please sign in to comment.