]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: acme: leak of ext_san upon insertion error
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 23 Mar 2026 10:42:43 +0000 (11:42 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 23 Mar 2026 10:58:53 +0000 (11:58 +0100)
commit5a0fbbf1ca827b85900d2c8da3a30ff715dfc877
tree88414df0b306153ecd380e2162e6fb888c5a9526
parentc6fc53aa9999c7336f18df5d32acb49ee2f6171a
BUG/MINOR: acme: leak of ext_san upon insertion error

This patch fixes a leak of the ext_san structure when
sk_X509_EXTENSION_push() failed. sk_X509_EXTENSION_pop_free() is already
suppose to free it, so ext_san must be set to NULL upon success to avoid
a double-free.

Must be backported to 3.2 and later.
src/acme.c