Signed-off-by: Joshua Rogers <MegaManSec@users.noreply.github.com>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28850)
uint64_t *value)
{
PACKET sub;
+ const unsigned char *body;
+ size_t len = 0;
- sub.curr = ossl_quic_wire_decode_transport_param_bytes(pkt,
- id, &sub.remaining);
- if (sub.curr == NULL)
+ body = ossl_quic_wire_decode_transport_param_bytes(pkt, id, &len);
+ if (body == NULL)
+ return 0;
+ if (!PACKET_buf_init(&sub, body, len))
return 0;
-
if (!PACKET_get_quic_vlint(&sub, value))
return 0;