Skip to content

Commit

Permalink
Always use MB NEW CID if unique path ID negotiated
Browse files Browse the repository at this point in the history
  • Loading branch information
huitema committed Mar 1, 2024
1 parent 28cf9e6 commit dc6668e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions picoquic/frames.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,9 @@ uint8_t * picoquic_format_new_connection_id_frame(picoquic_cnx_t* cnx, picoquic_
int * more_data, int * is_pure_ack, picoquic_local_cnxid_t* l_cid)
{
uint8_t* bytes0 = bytes;
int is_mp = (cnx->is_unique_path_id_enabled && l_cid->path_id > 0);
unsigned int is_mp = cnx->is_unique_path_id_enabled;

if (l_cid != NULL && (l_cid->sequence != 0 || l_cid->path_id > 0) && l_cid->cnx_id.id_len > 0) {
if (l_cid != NULL && l_cid->cnx_id.id_len > 0) {
if ((bytes = picoquic_frames_varint_encode(bytes, bytes_max,
(is_mp)?picoquic_frame_type_mp_new_connection_id:picoquic_frame_type_new_connection_id)) == NULL ||
(is_mp && ((bytes = picoquic_frames_varint_encode(bytes, bytes_max, l_cid->path_id)) == NULL)) ||
Expand Down

0 comments on commit dc6668e

Please sign in to comment.