]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: h3: remove unused outbuf in h3_resp_headers_send()
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 15 Jul 2025 16:17:14 +0000 (18:17 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 16 Jul 2025 08:30:59 +0000 (10:30 +0200)
Cleanup h3_resp_headers_send() by removing outbuf buffer variable which
is not necessary anymore.

src/h3.c

index c93752334c455d7efac3735c1dec3c0d54306c54..91cf6b6472bf825362909b091eae609f170d7da8 100644 (file)
--- a/src/h3.c
+++ b/src/h3.c
@@ -2177,7 +2177,6 @@ static int h3_resp_headers_send(struct qcs *qcs, struct htx *htx)
 {
        struct h3s *h3s = qcs->ctx;
        int err;
-       struct buffer outbuf;
        struct buffer headers_buf = BUF_NULL;
        struct buffer *res;
        struct http_hdr list[global.tune.max_http_hdr * 2];
@@ -2268,8 +2267,6 @@ static int h3_resp_headers_send(struct qcs *qcs, struct htx *htx)
                goto err_full;
        }
 
-       b_reset(&outbuf);
-       outbuf = b_make(b_tail(res), b_contig_space(res), 0, 0);
        /* Start the headers after frame type + length */
        headers_buf = b_make(b_tail(res) + 5, b_contig_space(res) - 5, 0, 0);