]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: ssl: Properly manage alloc failures in SSL passphrase callback
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Mon, 26 Jan 2026 10:22:18 +0000 (11:22 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 26 Jan 2026 13:08:50 +0000 (14:08 +0100)
commitd2ccc19fde2ce9af5379d4ab796e5b1307efacca
tree0eea277e912515a52f09adf20f493272caae6654
parentf4cd1e74ba072578b9e4df7b33867f25e612ed33
BUG/MINOR: ssl: Properly manage alloc failures in SSL passphrase callback

Some error paths in 'ssl_sock_passwd_cb' (allocation failures) did not
set the 'passphrase_idx' to -1 which is the way for the caller to know
not to call the callback again so in some memory contention contexts we
could end up calling the callback 'infinitely' (or until memory is
finally available).

This patch must be backported to 3.3.
src/ssl_sock.c