mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-18 02:54:10 +00:00
bgpd: null check (Clang scan-build)
Signed-off-by: F. Aragon <paco@voltanet.io>
This commit is contained in:
parent
6389e663e9
commit
18b91526fa
@ -384,7 +384,7 @@ static int reset(bool force)
|
|||||||
|
|
||||||
static struct rtr_mgr_group *get_connected_group(void)
|
static struct rtr_mgr_group *get_connected_group(void)
|
||||||
{
|
{
|
||||||
if (list_isempty(cache_list))
|
if (!cache_list || list_isempty(cache_list))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
return rtr_mgr_get_first_group(rtr_config);
|
return rtr_mgr_get_first_group(rtr_config);
|
||||||
|
Loading…
Reference in New Issue
Block a user