Merge pull request #1845 from nghttp2/minor-cleanup

Minor cleanup
This commit is contained in:
Tatsuhiro Tsujikawa 2022-12-25 18:00:51 +09:00 committed by GitHub
commit 42904a586c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -552,10 +552,10 @@ int QUICConnectionHandler::send_version_negotiation(
const UpstreamAddr *faddr, uint32_t version, const uint8_t *ini_dcid, const UpstreamAddr *faddr, uint32_t version, const uint8_t *ini_dcid,
size_t ini_dcidlen, const uint8_t *ini_scid, size_t ini_scidlen, size_t ini_dcidlen, const uint8_t *ini_scid, size_t ini_scidlen,
const Address &remote_addr, const Address &local_addr) { const Address &remote_addr, const Address &local_addr) {
std::array<uint32_t, 2> sv; std::array<uint32_t, 2> sv{
generate_reserved_version(remote_addr, version),
sv[0] = generate_reserved_version(remote_addr, version); NGTCP2_PROTO_VER_V1,
sv[1] = NGTCP2_PROTO_VER_V1; };
std::array<uint8_t, NGTCP2_MAX_UDP_PAYLOAD_SIZE> buf; std::array<uint8_t, NGTCP2_MAX_UDP_PAYLOAD_SIZE> buf;