]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: httpclient: check if the httpclient was released in the IO handler
authorWilliam Lallemand <wlallemand@haproxy.org>
Thu, 20 Oct 2022 16:36:03 +0000 (18:36 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 20 Oct 2022 16:47:15 +0000 (18:47 +0200)
commita93eac41f0e9143daccd852c4a26003b5cd4e036
treecfa4bb7211b70cb86ce80d2572b588a34c257b27
parentbb581423b3ba48dfafb53b70205483f766242a6b
BUG/MEDIUM: httpclient: check if the httpclient was released in the IO handler

Upon a applet_release(), the applet can be scheduled again and a call to
the IO handler is still possible. When the struct httpclient is already
free the IO handler could try to access it.

This patch fixes the issue by setting svcctx to NULL in the
applet_release, and checking its value in the IO handler.

Must be backported as far as 2.5.
src/http_client.c