]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: sample: fix NULL strm dereference in sample_conv_when
authorWilly Tarreau <w@1wt.eu>
Sun, 26 Apr 2026 21:56:00 +0000 (23:56 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 27 Apr 2026 12:44:29 +0000 (14:44 +0200)
commit25c8d7b09428c02a336049cfa64d7fada4135fc4
treefa33973c18c6b7277a27266f02761cbf4d1d3026
parent7465b5ec38bde3c9c7101002881a3d070af0e2bb
BUG/MINOR: sample: fix NULL strm dereference in sample_conv_when

Several cases in sample_conv_when (FORWARDED, TOAPPLET, PROCESSED, ACL)
access smp->strm->scb without checking if strm is NULL. The strm field
may be NULL (e.g., tcp-request connection). Let's add NULL checks to
prevent dereferencing a NULL pointer.

This should be backported to 3.1.
src/sample.c