]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: handle NULL pointers in lcommunity_cmp()
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 19 Oct 2018 18:53:55 +0000 (15:53 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Sat, 20 Oct 2018 15:39:05 +0000 (12:39 -0300)
commitfbcdff8229519bce83f34ea327f6000d21c24d61
tree478fe47a3ec9715fd9579f07c119c28906ae8670
parent2ba315c80192db294786d244d7a31a7f680f0fc4
bgpd: handle NULL pointers in lcommunity_cmp()

Like community_cmp() and ecommunity_cmp(), the lcommunity_cmp() function
also needs to handle NULL pointers for correct operation.

Without this fix, bgpd can crash when entering the following commands:
vtysh -c "configure terminal" -c "ip large-community-list standard WORD deny"
vtysh -c "configure terminal" -c "no ip large-community-list expanded WORD"

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
bgpd/bgp_lcommunity.c