]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: log: Initialize the list element when allocating a new log server
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 29 Mar 2022 12:17:09 +0000 (14:17 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 29 Mar 2022 12:17:10 +0000 (14:17 +0200)
commitb4f96eda561ce54a9147e86ad4bdb178b0b01311
tree531ae8627073b52f242e06ee7c57e53b903cf8bf
parent744451c7c412677dadfe626642ea5d980208e0d1
BUG/MINOR: log: Initialize the list element when allocating a new log server

211ea252d ("BUG/MINOR: logs: fix logsrv leaks on clean exit") introduced a
regression because the list element of a new log server is not intialized. Thus
HAProxy crashes on error path when an invalid log server is released.

This patch shoud fix the issue #1636. It must be backported if the above commit
is backported. For now, it is 2.6-specific and no backport is needed.
src/log.c