No need to check hd.flags because hd.type is unique
@@ -5906,8 +5906,7 @@ conn_recv_handshake_pkt(ngtcp2_conn *conn, const ngtcp2_path *path,
return NGTCP2_ERR_DISCARD_PKT;
}
- if (!(hd.flags & NGTCP2_PKT_FLAG_LONG_FORM) &&
- hd.type == NGTCP2_PKT_VERSION_NEGOTIATION) {
+ if (hd.type == NGTCP2_PKT_VERSION_NEGOTIATION) {
hdpktlen = (size_t)nread;
ngtcp2_log_rx_pkt_hd(&conn->log, &hd);
