Skip to content

Commit 515f453

Browse files
committed
Release 4.0.4
1 parent 46c448d commit 515f453

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/liblsquic/lsquic_full_conn_ietf.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7283,7 +7283,8 @@ on_dcid_change (struct ietf_full_conn *conn, const lsquic_cid_t *dcid_in)
72837283
struct lsquic_conn *const lconn = &conn->ifc_conn; /* Shorthand */
72847284
struct conn_cid_elem *cce;
72857285

7286-
LSQ_DEBUG("peer switched its DCID, attempt to switch own SCID");
7286+
LSQ_DEBUGC("peer switched its DCID to %"CID_FMT
7287+
", attempt to switch own SCID", CID_BITS(dcid_in));
72877288

72887289
for (cce = lconn->cn_cces; cce < END_OF_CCES(lconn); ++cce)
72897290
if (cce - lconn->cn_cces != lconn->cn_cur_cce_idx
@@ -7545,7 +7546,9 @@ process_regular_packet (struct ietf_full_conn *conn,
75457546
<< packet_in->pi_path_id);
75467547
}
75477548
}
7548-
else if (is_dcid_changed)
7549+
else if (is_dcid_changed
7550+
&& !LSQUIC_CIDS_EQ(CN_SCID(&conn->ifc_conn),
7551+
&packet_in->pi_dcid))
75497552
{
75507553
if (0 != on_dcid_change(conn, &packet_in->pi_dcid))
75517554
return -1;

0 commit comments

Comments
 (0)