]> git.ipfire.org Git - thirdparty/lldpd.git/commit
lib/atoms/port: fix segfaults with minimal information 198/head
authorBert van Hall <bert.vanhall@avionic-design.de>
Tue, 30 Aug 2016 13:39:48 +0000 (15:39 +0200)
committerBert van Hall <bert.vanhall@avionic-design.de>
Tue, 30 Aug 2016 13:57:47 +0000 (15:57 +0200)
commit825b37a76f1e40592db64d50c074ef79c93f5154
tree3e12826d69ae5d53c964236dc96062f45234bd9b
parent05a708dc86ef0f170bcc466e89f3247dadbdb88d
lib/atoms/port: fix segfaults with minimal information

When no packet has yet been received, querying LLDP information leads to
segfaults. Fix those by adding a couple pointer checks.

Signed-off-by: Bert van Hall <bert.vanhall@avionic-design.de>
src/lib/atoms/port.c