From: Willy Tarreau Date: Sat, 14 Feb 2015 13:14:57 +0000 (+0100) Subject: BUG/MAJOR: peers: initialize s->buffer_wait when creating the session X-Git-Tag: v1.6-dev1~141 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d7ec46b046c3615b2ed3dbf2384dccff9bc342c;p=thirdparty%2Fhaproxy.git BUG/MAJOR: peers: initialize s->buffer_wait when creating the session Commit bf883e0 ("MAJOR: session: implement a wait-queue for sessions who need a buffer") introduced in 1.6 forgot to initialize the buffer_wait list when the session is initiated by an applet for a peer, resulting in a crash. Thanks to Chris Kopp for reporting the issue. --- diff --git a/src/peers.c b/src/peers.c index 23c4ea364b..2357c0cabe 100644 --- a/src/peers.c +++ b/src/peers.c @@ -1134,6 +1134,7 @@ static struct session *peer_session_create(struct peer *peer, struct peer_sessio LIST_ADDQ(&sessions, &s->list); LIST_INIT(&s->back_refs); + LIST_INIT(&s->buffer_wait); s->flags = SN_ASSIGNED|SN_ADDR_SET;