]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: hq_interop: fix potential NULL dereference in _hq_trace_http()
authorFrederic Lecaille <flecaille@haproxy.com>
Wed, 12 Aug 2026 13:44:08 +0000 (15:44 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Wed, 12 Aug 2026 13:51:40 +0000 (15:51 +0200)
commit0378631eeb57a308333d1f29a8635a78ee9ca753
treef30be251f8c34f78e79e9eaa6651a8036e56962d
parent10ae6c2c75dd1e52c9ddf972a7b5d98a5242dab2
BUG/MINOR: hq_interop: fix potential NULL dereference in _hq_trace_http()

This bug can be triggered only if the hq_interop traces are enabled. It
has been reported by GH #3468.

In _hq_trace_http(), qcs->qcc->conn was directly passed to TRACE_PRINTF_LOC.
However, qcs can be NULL, leading to a crash.

Fix this by using the <qcc> parameter passed to the function instead,
with a NULL check.

No need to backport.
src/hq_interop.c