]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: ssl/ckch: always ha_freearray() the previous entry during parsing
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 9 May 2025 17:16:02 +0000 (19:16 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 9 May 2025 17:16:02 +0000 (19:16 +0200)
commit9c0c05b7baa53cb07103d5a57768fc45238ee2ea
treee97d3703bddc95f2e6a1585ce393d422997f2f12
parent96b1f1fd261109524f6a804bc0a7b24ea4e3d772
BUG/MINOR: ssl/ckch: always ha_freearray() 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 is the same problem as the previous "BUG/MINOR: ssl/ckch: always
free() the previous entry during parsing" patch, however this one
applies on PARSE_TYPE_ARRAY_SUBSTR.

No backport needed.
src/ssl_ckch.c