From: paco Date: Thu, 28 Jun 2018 13:21:00 +0000 (+0200) Subject: bgpd: null check (Coverity 23065) X-Git-Tag: frr-6.1-dev~222^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=d4f8b537505697de9b15e1ac42a5a1530380122b;p=matthieu%2Ffrr.git bgpd: null check (Coverity 23065) Signed-off-by: F. Aragon --- diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index 64f36ec6e3..c216d0a56d 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -1032,6 +1032,8 @@ static inline bgp_peer_sort_t peer_calc_sort(struct peer *peer) else { struct peer *peer1; + + assert(peer->group); peer1 = listnode_head(peer->group->peer); if (peer1)