From: Christopher Faulet Date: Tue, 10 Mar 2026 07:12:15 +0000 (+0100) Subject: MINOR: quic: Use b_alloc_small() to allocate a small buffer X-Git-Tag: v3.4-dev8~135 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=01b9b67d5ca46e2f6367c9c960d1161ac1677e0d;p=thirdparty%2Fhaproxy.git MINOR: quic: Use b_alloc_small() to allocate a small buffer Rely on b_alloc_small to allocate a small buffer. --- diff --git a/src/quic_stream.c b/src/quic_stream.c index 407ca1efe..a2d0020cd 100644 --- a/src/quic_stream.c +++ b/src/quic_stream.c @@ -462,16 +462,12 @@ struct buffer *qc_stream_buf_alloc(struct qc_stream_desc *stream, } } else { - char *area; - - if (!(area = pool_alloc(pool_head_small_buffer))) { + if (!b_alloc_small(&stream->buf->buf)) { pool_free(pool_head_quic_stream_buf, stream->buf); stream->buf = NULL; return NULL; } - stream->buf->sbuf = 1; - stream->buf->buf = b_make(area, global.tune.bufsize_small, 0, 0); } eb64_insert(&stream->buf_tree, &stream->buf->offset_node);