From: Marcel Röthke Date: Thu, 7 Feb 2019 16:16:19 +0000 (+0100) Subject: bgpd: fix crash when trying to remove non-existing rpki cache X-Git-Tag: 7.1_pulled~268^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=222487feb59f3abbe7c5825bc66a4578fe6421a9;p=matthieu%2Ffrr.git bgpd: fix crash when trying to remove non-existing rpki cache Signed-off-by: Marcel Röthke --- diff --git a/bgpd/bgp_rpki.c b/bgpd/bgp_rpki.c index b2e7f04ece..a38d78916c 100644 --- a/bgpd/bgp_rpki.c +++ b/bgpd/bgp_rpki.c @@ -1134,7 +1134,7 @@ DEFPY (no_rpki_cache, { struct cache *cache_p = find_cache(preference); - if (!cache) { + if (!cache_p) { vty_out(vty, "Could not find cache %ld\n", preference); return CMD_WARNING; }