]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: Prevent possible crash when parsing v6 attributes
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 6 Sep 2018 14:51:08 +0000 (10:51 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 12 Sep 2018 13:00:43 +0000 (09:00 -0400)
commit17cdd31e00b2ca2763c042a415bfcf03b614a783
tree9604ddfc2bce866b4b4bccb145526ddd784e43f8
parent99f9c2771cb6bee8ee8758bd1c31bf92bb747acf
bgpd: Prevent possible crash when parsing v6 attributes

The peer->nexthop.ifp pointer must be set when parsing the
attributes in bgp_mp_reach_parse, notice this
and fail gracefully.

Rework bgp_nexthop_set to remove the HAVE_CUMULUS and to
fail the nexthop_set when we have a zebra connection and
no ifp pointer, as that not havinga zebra connection and
no ifp pointer is legal.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_attr.c
bgpd/bgp_network.c
bgpd/bgp_zebra.c
bgpd/bgp_zebra.h
bgpd/bgpd.h