]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-pt: Fix a possible UAF because of traces in mux_pt_io_cb
authorChristopher Faulet <cfaulet@haproxy.com>
Sat, 10 Apr 2021 07:02:32 +0000 (09:02 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Sat, 10 Apr 2021 07:02:36 +0000 (09:02 +0200)
commite2c65ba344bbe11c3dd595e68335893282aa02ef
tree621e4d3123b37fc7d6b7f8f1639373c98a3ed677
parentc0ae097b95ab4b4961790e57069a374a1cdbef4a
BUG/MINOR: mux-pt: Fix a possible UAF because of traces in mux_pt_io_cb

In mux_pt_io_cb(), if a connection error or a shutdown is detected, the mux
is destroyed. Thus we must be careful to not use it in a trace message once
destroyed.

No backport needed. This patch should fix the issue #1220.
src/mux_pt.c