MINOR: backend: add a BUG_ON if conn mux NULL in connect_server
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 5 Mar 2021 14:27:41 +0000 (15:27 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 5 Mar 2021 14:27:41 +0000 (15:27 +0100)
commitd7faa3d6e9626e644d43709b79803b80696cbf89
tree34ed1c0e1432afa983eb4baceae324a7631b1a53
parenteef7f7fe686d66ccbb1ad6856cd9154554ea1cf1
MINOR: backend: add a BUG_ON if conn mux NULL in connect_server

Currently, there seems to be no way to have the transport layer ready
but not the mux in the function connect_server. Add a BUG_ON to report
if this implicit condition is not true anymore.

This should fix coverity report from github issue #1120.
src/backend.c