]> git.ipfire.org Git - thirdparty/lldpd.git/commit
protocols: fix more memory leak when decoding multiple TLVs
authorVincent Bernat <vincent@bernat.ch>
Tue, 16 Mar 2021 16:36:35 +0000 (17:36 +0100)
committerVincent Bernat <vincent@bernat.ch>
Tue, 16 Mar 2021 17:16:47 +0000 (18:16 +0100)
commit7d60bf30effc4c88f17f3d58ecaa72479f16d4be
tree9a664daf5f222be57e99b56617d5c3c7db91f37c
parent8c69002b45bbb23764dc9a6a2c2ce8f9275717d4
protocols: fix more memory leak when decoding multiple TLVs

In a8d3c90feca5, some memory leaks were fixed when a TLV is present
multiple times. There were other occurrences in LLDP, CDP and EDP
handling. We ensure we free before overwriting with the new TLVs.

Fix #436
NEWS
src/daemon/protocols/cdp.c
src/daemon/protocols/edp.c
src/daemon/protocols/lldp.c