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

This is a harmless copy-paste typo from the field name decoding block
just above, fix it to prevent confusion when debugging QPACK streams.

Should be easily backported to all versions to ease further modifications
into the QPACK code.

src/qpack-dec.c

index e6ecb6dbbac006bade3c4371c54c4c627c65e41c..886a7f34b545b4fa0c75ecaa0625d12d6011e413 100644 (file)
@@ -462,7 +462,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)length, (int)nlen, trash);
+                               qpack_debug_printf(stderr, " [value huff %d->%d '%s']", (int)length, (int)nlen, trash);
                                /* makes an ist from tmp storage */
                                b_add(tmp, nlen);
                                value = ist2(trash, nlen);