]> git.puffer.fish Git - matthieu/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>
Mon, 17 Dec 2018 14:14:04 +0000 (12:14 -0200)
commit446c0f0d122c7c2ddc76ee182af85d1cdbc70e78
tree8db98d253ed3fa4ca6fe933afd7f784f3cd4023d
parent213bdb39a7326ab9622d48d770549b5d7d1d5878
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