From 67fcdffbd3dfb93263e9da2e363c4cbc539bccce Mon Sep 17 00:00:00 2001 From: claudio Date: Mon, 6 Aug 2018 08:10:12 +0000 Subject: [PATCH] Replace two asp->peer with prefix_peer(p) which is the same. --- usr.sbin/bgpd/rde.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c index b149451abc9..f548b11a9f4 100644 --- a/usr.sbin/bgpd/rde.c +++ b/usr.sbin/bgpd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.408 2018/08/03 16:31:22 claudio Exp $ */ +/* $OpenBSD: rde.c,v 1.409 2018/08/06 08:10:12 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -2120,7 +2120,7 @@ rde_dump_filter(struct prefix *p, struct ctl_show_rib_request *req) if (req->flags & F_CTL_ADJ_IN || !(req->flags & (F_CTL_ADJ_IN|F_CTL_ADJ_OUT))) { asp = prefix_aspath(p); - if (req->peerid && req->peerid != asp->peer->conf.id) + if (req->peerid && req->peerid != prefix_peer(p)->conf.id) return; if (req->type == IMSG_CTL_SHOW_RIB_AS && !aspath_match(asp->aspath->data, asp->aspath->len, @@ -2882,7 +2882,7 @@ rde_softreconfig_in(struct rib_entry *re, void *bula) pt_getaddr(pt, &addr); LIST_FOREACH(p, &re->prefix_h, rib_l) { asp = prefix_aspath(p); - peer = asp->peer; + peer = prefix_peer(p); for (i = RIB_LOC_START; i < rib_size; i++) { rib = &ribs[i]; -- 2.20.1