Skip to content

Commit 31acd57

Browse files
committed
Fix parse header test.
1 parent 96883a3 commit 31acd57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

picoquictest/parseheadertest.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ int parseheadertest()
525525
cnx_10->path[0]->first_tuple->p_remote_cnxid->cnx_id = test_cnxid_r10;
526526
}
527527
header_length = picoquic_create_packet_header(cnx_10, test_entries[i].ph->ptype,
528-
test_entries[i].ph->pn, cnx_10->path[0], NULL, 0, packet, &pn_offset, &pn_length);
528+
test_entries[i].ph->pn, cnx_10->path[0], cnx_10->path[0]->first_tuple, 0, packet, &pn_offset, &pn_length);
529529
picoquic_update_payload_length(packet, pn_offset, pn_offset, pn_offset +
530530
test_entries[i].ph->payload_length);
531531

@@ -1139,7 +1139,7 @@ static int header_length_test_one(header_length_case_t * hlc)
11391139
if (ret == 0) {
11401140
/* Compute the header length */
11411141
header_length = picoquic_create_packet_header(cnx, hlc->ptype,
1142-
hlc->sequence, cnx->path[0], NULL, predicted_length, buffer, &pn_offset, &pn_length);
1142+
hlc->sequence, cnx->path[0], cnx->path[0]->first_tuple, predicted_length, buffer, &pn_offset, &pn_length);
11431143
/* Check the results */
11441144
if (header_length != predicted_length) {
11451145
DBG_PRINTF("Error, predicted header length %zu, actual %zu", header_length, predicted_length);

0 commit comments

Comments
 (0)