]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: null check (Clang scan-build) 2466/head
authorpaco <paco@voltanet.io>
Fri, 15 Jun 2018 18:02:23 +0000 (20:02 +0200)
committerpaco <paco@voltanet.io>
Fri, 15 Jun 2018 18:02:23 +0000 (20:02 +0200)
Signed-off-by: F. Aragon <paco@voltanet.io>
bgpd/bgp_mpath.c

index 915387ca2defc86c42030743f8686fcb9c847fd7..333d09806e29af2c56a8a0f128d4d016ed3357af 100644 (file)
@@ -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.