From eb9a3f94977e6e50469e27dc2a238cad9c45a3cb Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Sun, 18 Dec 2016 17:15:08 +0000 Subject: Correct logic, make it the same as in the other mrt_dump_bgp_msg case. Found while looking for something else. --- usr.sbin/bgpd/session.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c index 126e78de72b..7d0ea63ef68 100644 --- a/usr.sbin/bgpd/session.c +++ b/usr.sbin/bgpd/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.354 2016/09/03 16:22:17 renato Exp $ */ +/* $OpenBSD: session.c,v 1.355 2016/12/18 17:15:07 claudio Exp $ */ /* * Copyright (c) 2003, 2004, 2005 Henning Brauer @@ -1377,7 +1377,7 @@ session_sendmsg(struct bgp_msg *msg, struct peer *p) mrt->type == MRT_UPDATE_OUT))) continue; if ((mrt->peer_id == 0 && mrt->group_id == 0) || - mrt->peer_id == p->conf.id || (mrt->group_id == 0 && + mrt->peer_id == p->conf.id || (mrt->group_id != 0 && mrt->group_id == p->conf.groupid)) mrt_dump_bgp_msg(mrt, msg->buf->buf, msg->len, p); } -- cgit v1.2.3