]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: stream: Set SC_FL_ERROR on channels' buffer allocation error
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 14 Apr 2023 09:36:29 +0000 (11:36 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 14 Apr 2023 15:05:54 +0000 (17:05 +0200)
Set SC_FL_ERROR flag when we fail to allocate a buffer for a stream.

src/stream.c

index 9c3361f3a38b7690046ad6608258546b8b93e072..33a5a764a81bf5d1613ff55af7c95ff67c9582a1 100644 (file)
@@ -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))