Do not check VN versions if original_version is a reserved version
@@ -5026,6 +5026,7 @@ static int conn_on_version_negotiation(ngtcp2_conn *conn,
ngtcp2_qlog_version_negotiation_pkt_received(&conn->qlog, hd, p, nsv);
+ if (!ngtcp2_is_reserved_version(conn->local.settings.original_version)) {
for (i = 0; i < nsv; ++i) {
if (p[i] == conn->local.settings.original_version) {
ngtcp2_log_info(&conn->log, NGTCP2_LOG_EVENT_PKT,
@@ -5036,6 +5037,7 @@ static int conn_on_version_negotiation(ngtcp2_conn *conn,
goto fin;
}
}
+ }
rv = conn_call_recv_version_negotiation(conn, hd, p, nsv);
if (rv != 0) {
