]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: stream: do not try to free a failed stream-conn
authorWilly Tarreau <w@1wt.eu>
Mon, 20 Mar 2023 18:11:08 +0000 (19:11 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 20 Mar 2023 18:58:38 +0000 (19:58 +0100)
commita45e7e81ec54fd0562d8ab4776b4c05584d6d180
treebd2b0e7b15618a0a33aa7774d7b10ac1912b1cd7
parente25fce03ebe3307bc104d1f81356108e271d2bc3
BUG/MEDIUM: stream: do not try to free a failed stream-conn

In stream_free() if we fail to allocate s->scb() we go to the path where
we try to free it, and it doesn't like being called with a null at all.
It's easily reproducible with -dMfail,no-cache and "tune.fail-alloc 10"
in the global section.

This must be backported to 2.6.
src/stream.c