]> 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)
committerDavid Lamparter <equinox@opensourcerouting.org>
Thu, 7 Feb 2019 17:45:48 +0000 (18:45 +0100)
Signed-off-by: Marcel Röthke <marcel.roethke@haw-hamburg.de>
bgpd/bgp_rpki.c

index 06fd4decea5e6eadbc452a6db512f7d8fd11cb4a..196d1449b7411b7fccc6a6927c43b7325f4f9d2a 100644 (file)
@@ -1133,7 +1133,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;
        }