]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: fix crash when trying to remove non-existing rpki cache
authorMarcel Röthke <marcel.roethke@haw-hamburg.de>
Thu, 7 Feb 2019 16:16:19 +0000 (17:16 +0100)
committerMarcel Röthke <marcel.roethke@haw-hamburg.de>
Thu, 7 Feb 2019 16:26:11 +0000 (17:26 +0100)
Signed-off-by: Marcel Röthke <marcel.roethke@haw-hamburg.de>
bgpd/bgp_rpki.c

index b2e7f04ece7e24d15475e3b95f67d6ca133e3db8..a38d78916c1837a7f69fbb40c73afdb670dc4336 100644 (file)
@@ -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;
        }