]> git.ipfire.org Git - thirdparty/lldpd.git/commit
daemon/interfaces: fix double-free when unable to initialize interface
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 17:01:50 +0000 (19:01 +0200)
commit08f9c680f9b386a34a9d7940bdb85936449738b4
treee592b68a22065415502b36bb298c43f4159c092b
parent995a81103a8add861a051a080d58d946410cad1b
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