-/* $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 <henning@openbsd.org>
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,
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];