]> git.ipfire.org Git - thirdparty/lldpd.git/commit
lldpd: use strdup() on arguments that could be changed by lldpcli
authorVincent Bernat <vincent@bernat.im>
Sun, 2 Nov 2014 17:10:55 +0000 (18:10 +0100)
committerVincent Bernat <vincent@bernat.im>
Sun, 2 Nov 2014 17:10:55 +0000 (18:10 +0100)
commitabc042057d9fc237b239948136cb89a4a2ac9a01
tree449453f1b6a237b307777b27a66af1bcc7f210fb
parente4c51716848a639daf61eff3e96ad242af3e316b
lldpd: use strdup() on arguments that could be changed by lldpcli

And add the appropriate "const" modifier for those that don't. The
compiler should warn us if we did something wrong.
src/daemon/lldpd.c
src/daemon/lldpd.h