BIO *next = BIO_next(bio);
size_t i, j, data_len = 0, msg_cnt = 0;
BIO_MSG *thismsg;
+ QTEST_DATA *bdata = BIO_get_data(bio);
- if (!TEST_ptr(next))
+ if (!TEST_ptr(next) || !TEST_ptr(bdata))
return 0;
/*
return 0;
/* Decode the packet header */
- /*
- * TODO(QUIC SERVER): We need to query the short connection id len
- * here, e.g. via some API SSL_get_short_conn_id_len()
- */
- if (ossl_quic_wire_decode_pkt_hdr(&pkt, 0, 0, 0, &hdr, NULL, NULL) != 1)
+ if (ossl_quic_wire_decode_pkt_hdr(&pkt, bdata->short_conn_id_len,
+ 0, 0, &hdr, NULL, NULL) != 1)
return 0;
remain = PACKET_remaining(&pkt);
if (remain > 0) {