commit | c3fa638b4c595096dd4cbed3ba7ec1bb5ff361e1 | [log] [tgz] |
---|---|---|
author | Olivier Houchard <ohouchard@haproxy.com> | Thu Dec 27 15:29:53 2018 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Fri Dec 28 16:33:00 2018 +0100 |
tree | 0c0c0306ef21f630b3a23d0f7417bc8e93fcd2b7 | |
parent | 134a2045bbae1de2dd267928367a1445e966013d [diff] |
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.