Skip to content

Commit

Permalink
bgpd: fix crash when trying to remove non-existing rpki cache
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Röthke <marcel.roethke@haw-hamburg.de>
  • Loading branch information
mroethke committed Feb 7, 2019
1 parent 745ae9c commit 222487f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgpd/bgp_rpki.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ DEFPY (no_rpki_cache,
{ {
struct cache *cache_p = find_cache(preference); struct cache *cache_p = find_cache(preference);


if (!cache) { if (!cache_p) {
vty_out(vty, "Could not find cache %ld\n", preference); vty_out(vty, "Could not find cache %ld\n", preference);
return CMD_WARNING; return CMD_WARNING;
} }
Expand Down

0 comments on commit 222487f

Please sign in to comment.