]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: ssl_sock: bind_conf uninitialized in ssl_sock_bind_verifycbk()
authorFrédéric Lécaille <flecaille@haproxy.com>
Fri, 14 Oct 2022 07:34:00 +0000 (09:34 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Oct 2022 08:25:11 +0000 (10:25 +0200)
commit48e46f98ccf97427995eb41c6f28cc38705bdd7e
treeca1afbf154be2ac4af22960401af3c4fb972892f
parentef3e5a1b6815f8cfa2783e1e73ee7f198b691e34
BUILD: ssl_sock: bind_conf uninitialized in ssl_sock_bind_verifycbk()

Even if this cannot happen, ensure <bind_conf> is initialized in this
function to please some compilers.

Takes the opportunity of this patch to replace an ABORT_NOW() by
a BUG_ON() because if the variable values they test are not initialized,
this is really because there is a bug.

Must be backported to 2.6.
src/ssl_sock.c