Fix buffer overflow in conn_on_version_negotiation()
@@ -3462,7 +3462,7 @@ static int conn_on_version_negotiation(ngtcp2_conn *conn,
ngtcp2_log_rx_vn(&conn->log, hd, p, nsv);
for (i = 0; i < nsv; ++i) {
- if (sv[i] == conn->version) {
+ if (p[i] == conn->version) {
ngtcp2_log_info(&conn->log, NGTCP2_LOG_EVENT_PKT,
"ignore Version Negotiation because it contains version "
"selected by client");
