]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: acme: fix false positive null pointer dereference
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 26 Sep 2025 08:34:35 +0000 (10:34 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 26 Sep 2025 08:34:35 +0000 (10:34 +0200)
commitb3b910cc3f342a5e86c79859d223efeafc61d53d
treee3035bb947a417c09c82dbb68a6b5f4c665f9947
parent3e72a9f6185d0538b84fa891fd8e622526a56f62
BUILD: acme: fix false positive null pointer dereference

src/acme.c: In function ‘cfg_parse_acme_vars_provider’:
src/acme.c:471:9: error: potential null pointer dereference [-Werror=null-dereference]
  471 |         free(*dst);
      |         ^~~~~~~~~~

gcc13 on ubuntu 24.04 detects a false positive when building
3e72a9f ("MINOR: acme: provider-name for dpapi sink").
Indeed dst can't be NULL. Clarify the code so gcc don't complain
anymore.
src/acme.c