]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: spoe: do not assume agent->rt is valid on exit
authorWilly Tarreau <w@1wt.eu>
Thu, 7 Feb 2019 13:22:52 +0000 (14:22 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 7 Feb 2019 14:08:13 +0000 (15:08 +0100)
commit3ddcf7643cfe5b542d72b0f6f815fc302e8e3bc9
tree38bfc99fd75b81413d41d3179b2dbd1bed31ffa0
parent4f03ab06a90df8e88ba2e347f52465b31392acc4
BUG/MINOR: spoe: do not assume agent->rt is valid on exit

As reported by Christopher, we may call spoe_release_agent() when leaving
after an allocation failure or a config parse error. We must not assume
agent->rt is valid there as the allocation could have failed.

This should be backported to 1.9 and 1.8.
src/flt_spoe.c