commit | a93eac41f0e9143daccd852c4a26003b5cd4e036 | [log] [tgz] |
---|---|---|
author | William Lallemand <wlallemand@haproxy.org> | Thu Oct 20 18:36:03 2022 +0200 |
committer | William Lallemand <wlallemand@haproxy.org> | Thu Oct 20 18:47:15 2022 +0200 |
tree | cfa4bb7211b70cb86ce80d2572b588a34c257b27 | |
parent | bb581423b3ba48dfafb53b70205483f766242a6b [diff] |
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.