mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 06:11:32 +02:00
MINOR: httpclient: set HTTPCLIENT_F_ENDED only in release
Only set the HTTPCLIENT_F_ENDED flag in httpclient_applet_release() function so we are sure that the appctx is not used anymore once the flag is set.
This commit is contained in:
parent
03f5a1c77d
commit
739f90a6ef
@ -578,7 +578,6 @@ static void httpclient_applet_io_handler(struct appctx *appctx)
|
||||
* set, leave (no body) */
|
||||
if (htx_is_empty(htx) && htx->flags & HTX_FL_EOM) {
|
||||
appctx->st0 = HTTPCLIENT_S_RES_END;
|
||||
hc->flags |= HTTPCLIENT_F_ENDED;
|
||||
} else {
|
||||
appctx->st0 = HTTPCLIENT_S_RES_BODY;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user