@@ -525,7 +525,7 @@ int parseheadertest()
525
525
cnx_10 -> path [0 ]-> first_tuple -> p_remote_cnxid -> cnx_id = test_cnxid_r10 ;
526
526
}
527
527
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 );
529
529
picoquic_update_payload_length (packet , pn_offset , pn_offset , pn_offset +
530
530
test_entries [i ].ph -> payload_length );
531
531
@@ -1139,7 +1139,7 @@ static int header_length_test_one(header_length_case_t * hlc)
1139
1139
if (ret == 0 ) {
1140
1140
/* Compute the header length */
1141
1141
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 );
1143
1143
/* Check the results */
1144
1144
if (header_length != predicted_length ) {
1145
1145
DBG_PRINTF ("Error, predicted header length %zu, actual %zu" , header_length , predicted_length );
0 commit comments