Skip to content

Commit b742563

Browse files
committed
Fix loop in ack of MP new CID frame.
1 parent 35f91bf commit b742563

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

picoquic/frames.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,11 +510,14 @@ int picoquic_process_ack_of_new_cid_frame(picoquic_cnx_t* cnx, const uint8_t* by
510510
const uint8_t * bytes_next = picoquic_parse_new_connection_id_frame(bytes, bytes + bytes_max, is_mp, &unique_path_id, &sequence, &retire_before, &cid_length, &cnxid_bytes, &secret_bytes);
511511

512512
if (bytes_next != NULL) {
513-
picoquic_local_cnxid_list_t* local_cnxid_list = picoquic_find_or_create_local_cnxid_list(cnx, unique_path_id, 0);
513+
picoquic_local_cnxid_list_t* local_cnxid_list;
514+
515+
*consumed = bytes_next - bytes;
516+
517+
local_cnxid_list = picoquic_find_or_create_local_cnxid_list(cnx, unique_path_id, 0);
514518

515519
if (local_cnxid_list != NULL) {
516520
picoquic_local_cnxid_t* local_cnxid = local_cnxid_list->local_cnxid_first;
517-
*consumed = bytes_next - bytes;
518521
/* Locate the CID being acknowledged */
519522

520523
while (local_cnxid != NULL) {

0 commit comments

Comments
 (0)