]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: deviceatlas: fix deinit to only finalize when initialized
authorDavid Carlier <dcarlier@deviceatlas.com>
Sat, 14 Feb 2026 13:24:02 +0000 (13:24 +0000)
committerWilly Tarreau <w@1wt.eu>
Sat, 14 Feb 2026 13:47:22 +0000 (14:47 +0100)
commit1d1daff7c4b5806a0fa98f6d7356b03dce209dcc
treee58dbf21c16e60479d4362e8b98bde7595e5ff7f
parentd8ff67659217321e8893d566a1c9fa441f5c01ce
BUG/MINOR: deviceatlas: fix deinit to only finalize when initialized

da_fini() was called unconditionally in deinit_deviceatlas() even when
da_init() was never called. Move it inside the daset check. Also remove
the erroneous shm_unlink() call which could affect the dadwsch shared
memory used by the scheduling process.

This should be backported to lower branches.
addons/deviceatlas/da.c