]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: qpack: fix copy-paste typo in value Huffman debug string for WLN
authorFrederic Lecaille <flecaille@haproxy.com>
Wed, 27 May 2026 15:07:26 +0000 (17:07 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Wed, 27 May 2026 16:40:53 +0000 (18:40 +0200)
In qpack_decode_fs(), inside the QPACK_LFL_WLN_BIT branch (Literal field
line with literal name), the debug message printed "[name huff ...]" instead
of "[value huff ...]" after decoding the value string.

This is a harmless copy-paste typo from the preceding name decoding block.

Even if this is a cleanup, should be easily backported to ease any further
backport.

src/qpack-dec.c

index 06642b5ea09519185132b3f7287ee684c47c1121..703275aa5c5a5552e3d56b0684392c978698beb7 100644 (file)
@@ -551,7 +551,7 @@ int qpack_decode_fs(const unsigned char *raw, uint64_t len, struct buffer *tmp,
                                        goto out;
                                }
 
-                               qpack_debug_printf(stderr, " [name huff %d->%d '%s']", (int)value_len, (int)nlen, trash);
+                               qpack_debug_printf(stderr, " [value huff %d->%d '%s']", (int)value_len, (int)nlen, trash);
                                /* makes an ist from tmp storage */
                                b_add(tmp, nlen);
                                value = ist2(trash, nlen);