From: paco Date: Mon, 18 Jun 2018 14:27:02 +0000 (+0200) Subject: bgpd: null check (Clang scan-build) X-Git-Tag: frr-6.1-dev~303^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=18b91526faefa0ade2e94df6f45ec7d2c7cc2d69;p=mirror%2Ffrr.git bgpd: null check (Clang scan-build) Signed-off-by: F. Aragon --- diff --git a/bgpd/bgp_rpki.c b/bgpd/bgp_rpki.c index a23d5d03c4..ac4dabc164 100644 --- a/bgpd/bgp_rpki.c +++ b/bgpd/bgp_rpki.c @@ -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);