commit | 46451d6e04c7fd384ae3846662cfb025c0ce6f43 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Fri Apr 19 15:39:22 2019 +0200 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Fri Apr 19 15:53:23 2019 +0200 |
tree | 80033f0af37e2f16a49d80aca7c83110237b7aa9 | |
parent | f48552f2c10a2f956d7bd1eb02a6d694d2b5c5d3 [diff] |
MINOR: gcc: Fix a silly gcc warning in connect_server() Don't know why it happens now, but gcc seems to think srv_conn may be NULL when a reused connection is removed from the orphan list. It happens when HAProxy is compiled with -O2 with my gcc (8.3.1) on fedora 29... Changing a little how reuse parameter is tested removes the warnings. So... This patch may be backported to 1.9.