]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MAJOR: servers: Use the list api correctly to avoid crashes.
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 27 Dec 2018 14:29:53 +0000 (15:29 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 28 Dec 2018 15:33:00 +0000 (16:33 +0100)
commitc3fa638b4c595096dd4cbed3ba7ec1bb5ff361e1
tree0c0c0306ef21f630b3a23d0f7417bc8e93fcd2b7
parent134a2045bbae1de2dd267928367a1445e966013d
BUG/MAJOR: servers: Use the list api correctly to avoid crashes.

In connect_server(), if we looked for an usable connection and failed to
find one, srv_conn won't be NULL at the end of list_for_each_entry(), but
will point to the head of a list, which is not a pointer to a struct
connection, so explicitely set it to NULL.

This should be backported to 1.9.
src/backend.c