]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: stream: don't crash on out-of-memory
authorWilly Tarreau <w@1wt.eu>
Mon, 15 Oct 2018 09:08:55 +0000 (11:08 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 15 Oct 2018 11:24:43 +0000 (13:24 +0200)
commite5f229e6392fd54aaba7fe58f457723c16b9d15f
tree586ce05aefc5e3e810cf56f7e99ac4c90f5b4d4f
parentdd319a5b1df73ab9a1443a27d1cafab0f8de86d6
BUG/MEDIUM: stream: don't crash on out-of-memory

In case pool_alloc() fails in stream_new(), we try to detach the stream
from the list before it has been added, dereferencing a NULL. In order
to fix it, simply move the LIST_DEL call upwards.

This must be backported to 1.8.
src/stream.c