From a220aec6ce5a8145dce5b435cd7fcb0d5618fea9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marcel=20R=C3=B6thke?= Date: Tue, 14 Nov 2017 09:38:51 +0100 Subject: [PATCH] bgpd: fix prefix count in show rpki prefix-table MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcel Röthke --- bgpd/bgp_rpki.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_rpki.c b/bgpd/bgp_rpki.c index cf830bb133..182f872ebd 100644 --- a/bgpd/bgp_rpki.c +++ b/bgpd/bgp_rpki.c @@ -224,7 +224,7 @@ static void print_record(const struct pfx_record *record, void *data) struct rpki_for_each_record_arg *arg = data; struct vty *vty = arg->vty; - arg->prefix_amount++; + (*arg->prefix_amount)++; lrtr_ip_addr_to_str(&record->prefix, ip, sizeof(ip)); vty_out(vty, "%-40s %3u - %3u %10u\n", ip, record->min_len, -- 2.39.5