]> git.ipfire.org Git - thirdparty/lldpd.git/commit
daemon/interfaces: fix double-free when unable to initialize interface fix/double-free 745/head
authorVincent Bernat <vincent@bernat.ch>
Sat, 9 Aug 2025 16:45:30 +0000 (18:45 +0200)
committerVincent Bernat <vincent@bernat.ch>
Sat, 9 Aug 2025 16:47:55 +0000 (18:47 +0200)
commit705087fe48483f14ae63295bfe67044738eea1d6
tree4ec82292b94d55e621dcb1c4fe7b57f357d36739
parent99211a551fc53bd93bb3df1f9615236502568db6
daemon/interfaces: fix double-free when unable to initialize interface

When an interface is converted from one type to another and cannot be
initialized, we free it twice: once on the error and again when removing
unused interfaces.

Remove the first occurrence and ensure we get in a state where the
interface can be both cleaned up or reinstantiated in a later round.
NEWS
src/daemon/interfaces.c