Skip to content
Permalink
Browse files

bgpd: fix crash when trying to remove non-existing rpki cache

Signed-off-by: Marcel Röthke <marcel.roethke@haw-hamburg.de>
  • Loading branch information...
mroethke committed Feb 7, 2019
1 parent 745ae9c commit 222487feb59f3abbe7c5825bc66a4578fe6421a9
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;
}

0 comments on commit 222487f

Please sign in to comment.
You can’t perform that action at this time.