]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ssl: refine the error testing for fc_err and fc_err_str
authorWilly Tarreau <w@1wt.eu>
Tue, 12 Apr 2022 05:40:42 +0000 (07:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 12 Apr 2022 05:42:49 +0000 (07:42 +0200)
commitce7a5e0967b09c8ac9b0078cc647ee0074be34f1
tree6d4574d40a0448fdff928cea07a01c34158c74ce
parent3a0a0d6cc15feaaec3dc6f953c39d251c7356490
MINOR: ssl: refine the error testing for fc_err and fc_err_str

In issue #1645, coverity suspects some dead code due to a pair of
remaining tests on "if (!ctx)". While all other functions test the
context earlier, these ones used to only test the connection and the
transport. It's still not very clear to me if there are certain error
cases that can lead to no SSL being initially set while the rest is
ready, and the SSL arriving later, but better preserve this original
construct by testing first the connection and only later the context.
src/ssl_sample.c