]> git.ipfire.org Git - thirdparty/lldpd.git/commit
Fix NULL pointer dereference in lldpd_dot3_power_pd_pse 271/head
authoraxjowa <johnnyw@axis.com>
Mon, 26 Feb 2018 16:00:29 +0000 (17:00 +0100)
committeraxjowa <johnnyw@axis.com>
Mon, 26 Feb 2018 16:00:29 +0000 (17:00 +0100)
commitf474adabbb4371dfc721ece2ccac0fe78824efcd
tree77dbbf41419006fced70040ae8283966b777089e
parent2e472ccaceb421f6ee83cc74ce90beb781beec37
Fix NULL pointer dereference in lldpd_dot3_power_pd_pse

selected_port might be NULL after the loop if, for example,
no PSE was found among the neighbours.

This fixes a crash that occured with a device connected to
a non-PoE, LLDP-enabled switch via a PoE midspan.
src/daemon/lldpd.c