diff --git a/src/h3.c b/src/h3.c index 9a65ebd75..3dc9facc5 100644 --- a/src/h3.c +++ b/src/h3.c @@ -498,7 +498,7 @@ static ssize_t h3_parse_settings_frm(struct h3c *h3c, const struct buffer *buf, TRACE_ENTER(H3_EV_RX_FRAME|H3_EV_RX_SETTINGS, h3c->qcc->conn); /* Work on a copy of . */ - b = b_make(b_orig(buf), b_size(buf), b_head_ofs(buf), b_data(buf)); + b = b_make(b_orig(buf), b_size(buf), b_head_ofs(buf), len); while (b_data(&b)) { if (!b_quic_dec_int(&id, &b, &ret) || !b_quic_dec_int(&value, &b, &ret)) {