]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: gcc: Fix a silly gcc warning in connect_server()
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Apr 2019 13:39:22 +0000 (15:39 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Apr 2019 13:53:23 +0000 (15:53 +0200)
commit46451d6e04c7fd384ae3846662cfb025c0ce6f43
tree80033f0af37e2f16a49d80aca7c83110237b7aa9
parentf48552f2c10a2f956d7bd1eb02a6d694d2b5c5d3
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.
src/backend.c