]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: ssl: fix memory leak on realloc failure in acme.ips
authorBiancaDogareci <biancadogareci@ymail.com>
Sat, 25 Apr 2026 12:00:37 +0000 (15:00 +0300)
committerWilliam Lallemand <wlallemand@irq6.net>
Sat, 25 Apr 2026 14:12:25 +0000 (16:12 +0200)
commitfa17a50c620237c88b7e1ca3ca3905c0e67217e4
tree5c9b7b6515626e6faa1cfee5df5d0ea9229b393e
parent90bfbea7c0a39ca33edd92ea4b92e77c8079e282
BUG/MINOR: ssl: fix memory leak on realloc failure in acme.ips

Fix a realloc() bug in ckchs_dup() when copying the acme.ips array,
where overwriting the original pointer with NULL on allocation failure
loses reference to the original memory block.

Use my_realloc2() which safely handles the failure.

No backport needed.
src/ssl_ckch.c