]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: null check (Clang scan-build) 2482/head
authorpaco <paco@voltanet.io>
Mon, 18 Jun 2018 14:27:02 +0000 (16:27 +0200)
committerpaco <paco@voltanet.io>
Mon, 18 Jun 2018 14:27:02 +0000 (16:27 +0200)
Signed-off-by: F. Aragon <paco@voltanet.io>
bgpd/bgp_rpki.c

index a23d5d03c4a06599ea1ed08da7b70c2306340e9a..ac4dabc164a2557a4287486271601e244e0ada0d 100644 (file)
@@ -384,7 +384,7 @@ static int reset(bool force)
 
 static struct rtr_mgr_group *get_connected_group(void)
 {
-       if (list_isempty(cache_list))
+       if (!cache_list || list_isempty(cache_list))
                return NULL;
 
        return rtr_mgr_get_first_group(rtr_config);