From: Christopher Faulet Date: Fri, 14 Apr 2023 09:36:29 +0000 (+0200) Subject: MINOR: stream: Set SC_FL_ERROR on channels' buffer allocation error X-Git-Tag: v2.8-dev8~139 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=340021b89fefe103b5ddbeb559815f61afbdceb3;p=thirdparty%2Fhaproxy.git MINOR: stream: Set SC_FL_ERROR on channels' buffer allocation error Set SC_FL_ERROR flag when we fail to allocate a buffer for a stream. --- diff --git a/src/stream.c b/src/stream.c index 9c3361f3a3..33a5a764a8 100644 --- a/src/stream.c +++ b/src/stream.c @@ -1806,9 +1806,11 @@ struct task *process_stream(struct task *t, void *context, unsigned int state) */ if (!stream_alloc_work_buffer(s)) { sc_ep_set(s->scf, SE_FL_ERROR); + scf->flags |= SC_FL_ERROR; s->conn_err_type = STRM_ET_CONN_RES; sc_ep_set(s->scb, SE_FL_ERROR); + scb->flags |= SC_FL_ERROR; s->conn_err_type = STRM_ET_CONN_RES; if (!(s->flags & SF_ERR_MASK))