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:
William Lallemand 2021-09-28 10:10:07 +02:00
parent 03f5a1c77d
commit 739f90a6ef

View File

@ -578,7 +578,6 @@ static void httpclient_applet_io_handler(struct appctx *appctx)
* set, leave (no body) */ * set, leave (no body) */
if (htx_is_empty(htx) && htx->flags & HTX_FL_EOM) { if (htx_is_empty(htx) && htx->flags & HTX_FL_EOM) {
appctx->st0 = HTTPCLIENT_S_RES_END; appctx->st0 = HTTPCLIENT_S_RES_END;
hc->flags |= HTTPCLIENT_F_ENDED;
} else { } else {
appctx->st0 = HTTPCLIENT_S_RES_BODY; appctx->st0 = HTTPCLIENT_S_RES_BODY;
} }