Do not copy DCID when NGTCP2_PV_FLAG_DONT_CARE flag is set
@@ -4774,6 +4774,7 @@ static int conn_recv_path_response(ngtcp2_conn *conn, ngtcp2_path_response *fr,
return 0;
}
+ if (!(pv->flags & NGTCP2_PV_FLAG_DONT_CARE)) {
if (!(pv->flags & NGTCP2_PV_FLAG_FALLBACK_ON_FAILURE)) {
if (pv->dcid.seq != conn->dcid.current.seq) {
assert(conn->dcid.current.cid.datalen);
@@ -4788,7 +4789,6 @@ static int conn_recv_path_response(ngtcp2_conn *conn, ngtcp2_path_response *fr,
conn_reset_ecn_validation_state(conn);
}
- if (!(pv->flags & NGTCP2_PV_FLAG_DONT_CARE)) {
rv = conn_call_path_validation(conn, &pv->dcid.ps.path,
NGTCP2_PATH_VALIDATION_RESULT_SUCCESS);
if (rv != 0) {
