]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: streams: Don't forget to remove the si from the wait list.
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 21 Aug 2018 12:25:52 +0000 (14:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 21 Aug 2018 16:06:33 +0000 (18:06 +0200)
When freeing the stream, make sure we remove the stream interfaces from the
wait lists, in case it was in there.

This is 1.9-specific, no backport is needed.

src/stream.c

index bc0f1ac7088f5d683589b9387b261f3929f81b5d..0f2ccf010d255fa15300465fc4970c8fa61db369 100644 (file)
@@ -409,7 +409,9 @@ static void stream_free(struct stream *s)
                session_free(sess);
 
        tasklet_free(s->si[0].wait_list.task);
+       LIST_DEL(&s->si[0].wait_list.list);
        tasklet_free(s->si[1].wait_list.task);
+       LIST_DEL(&s->si[1].wait_list.list);
        pool_free(pool_head_stream, s);
 
        /* We may want to free the maximum amount of pools if the proxy is stopping */