]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: cfgcond: always set the error string on openssl_version checks
authorWilly Tarreau <w@1wt.eu>
Fri, 3 Apr 2026 06:56:54 +0000 (08:56 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 3 Apr 2026 06:56:54 +0000 (08:56 +0200)
commitbf04e64f2cd47e2f2ff3376d7313956dc8e9dee0
tree126f01cd347664ca587c7af6b8b66aad8cb0c5ff
parent3608374d6dd549346066842544d521d7fa0bde37
BUG/MINOR: cfgcond: always set the error string on openssl_version checks

Using openssl_version_before() with an invalid argument results in "(null)"
appearing in the error message due to -1 being returned without the error
message being filled. Let's always fill the error message on error.

This was introduced in 2.5 with commit 3aeb3f9347 ("MINOR: cfgcond:
implements openssl_version_atleast and openssl_version_before"), and
this fix must be backported to 2.6.
src/cfgcond.c