]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: ssl/ckch: always free() the previous entry during parsing
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 9 May 2025 17:01:28 +0000 (19:01 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 9 May 2025 17:01:28 +0000 (19:01 +0200)
commit311e0aa5c712f38700b7b185c0d5f1aa33c48613
tree5a347663a2864be2c02128f89b625ff5ad4d0910
parent9ce3fb35a234dd268738c6e8e1f29290dcf006e1
BUG/MINOR: ssl/ckch: always free() the previous entry during parsing

The ckch_conf_parse() function is the generic function which parses
crt-store keywords from the crt-store section, and also from a crt-list.

When having multiple time the same keyword, a leak of the previous value
happens. This patch ensure that the previous value is always freed
before overwriting it.

This patch should be backported as far as 3.0.
src/ssl_ckch.c