diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2016-12-18 17:15:08 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2016-12-18 17:15:08 +0000 |
commit | eb9a3f94977e6e50469e27dc2a238cad9c45a3cb (patch) | |
tree | ebdee2126a5ba68ce39c7a502bcda9f34d981acf /usr.sbin/bgpd/session.c | |
parent | db19ac7a0a6709706014c23a20c870edf74fca03 (diff) |
Correct logic, make it the same as in the other mrt_dump_bgp_msg case.
Found while looking for something else.
Diffstat (limited to 'usr.sbin/bgpd/session.c')
-rw-r--r-- | usr.sbin/bgpd/session.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <henning@openbsd.org> @@ -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); } |