From: paco Date: Fri, 15 Jun 2018 18:02:23 +0000 (+0200) Subject: bgpd: null check (Clang scan-build) X-Git-Tag: frr-6.1-dev~313^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=cc35bc7c8f99408efd67daeab414c36b28acc996;p=matthieu%2Ffrr.git bgpd: null check (Clang scan-build) Signed-off-by: F. Aragon --- diff --git a/bgpd/bgp_mpath.c b/bgpd/bgp_mpath.c index 915387ca2d..333d09806e 100644 --- a/bgpd/bgp_mpath.c +++ b/bgpd/bgp_mpath.c @@ -471,7 +471,7 @@ void bgp_info_mpath_update(struct bgp_node *rn, struct bgp_info *new_best, zlog_debug( "%s: starting mpath update, newbest %s num candidates %d old-mpath-count %d", pfx_buf, new_best ? new_best->peer->host : "NONE", - listcount(mp_list), old_mpath_count); + mp_list ? listcount(mp_list) : 0, old_mpath_count); /* * We perform an ordered walk through both lists in parallel.