]> git.puffer.fish Git - matthieu/frr.git/commit
pimd: Fix leaked fd and prevent null pointer deref
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 19 Mar 2018 01:46:58 +0000 (21:46 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 19 Mar 2018 13:18:10 +0000 (09:18 -0400)
commit993b1432259e1859dc41c73e345bc573968721c5
tree7dc72bbcbb9395663bae808cd3442faf5b124b70
parent149a38a3134968cacc3dec024ef2cbbe17000174
pimd: Fix leaked fd and prevent null pointer deref

When the pim_nexthop_lookup fails, close the opened fd
as part of the failure condition.

Additionally pim_nexthop_lookup assumes that we've
actually already looked up a nexthop in the past.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_igmp_mtrace.c