Skip to content

Commit

Permalink
Release 4.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
gwanglst committed Jan 9, 2024
1 parent 46c448d commit 515f453
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/liblsquic/lsquic_full_conn_ietf.c
Original file line number Diff line number Diff line change
Expand Up @@ -7283,7 +7283,8 @@ on_dcid_change (struct ietf_full_conn *conn, const lsquic_cid_t *dcid_in)
struct lsquic_conn *const lconn = &conn->ifc_conn; /* Shorthand */
struct conn_cid_elem *cce;

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

for (cce = lconn->cn_cces; cce < END_OF_CCES(lconn); ++cce)
if (cce - lconn->cn_cces != lconn->cn_cur_cce_idx
Expand Down Expand Up @@ -7545,7 +7546,9 @@ process_regular_packet (struct ietf_full_conn *conn,
<< packet_in->pi_path_id);
}
}
else if (is_dcid_changed)
else if (is_dcid_changed
&& !LSQUIC_CIDS_EQ(CN_SCID(&conn->ifc_conn),
&packet_in->pi_dcid))
{
if (0 != on_dcid_change(conn, &packet_in->pi_dcid))
return -1;
Expand Down

0 comments on commit 515f453

Please sign in to comment.