]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: http-fetch: make http_first_req() check for HTTP first
authorWilly Tarreau <w@1wt.eu>
Mon, 11 May 2026 12:58:45 +0000 (14:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 11 May 2026 14:04:19 +0000 (16:04 +0200)
commit8941cc5f6db3b86ef68d88f7305acc82069887b4
tree06364428f9ea0cb068233aea2230b1d1335e9d92
parent15c5226bd39d71eca73643e493c0505adf9e2253
BUG/MINOR: http-fetch: make http_first_req() check for HTTP first

smp_fetch_http_first_req() reads ->txn.http->flags without first
checking if txn.http is properly allocated. In theory if called from
the wrong context it could crash, even though tests where it's called
from "tcp-request content" don't seem to have any effect. Let's fix
it regardless, at least to dissipate the doubt. It can be backported
everywhere.
src/http_fetch.c