artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e39af20
)
Properly break out of the loop setting the PREF flags.
author
claudio
<claudio@openbsd.org>
Thu, 7 Jul 2022 12:38:19 +0000
(12:38 +0000)
committer
claudio
<claudio@openbsd.org>
Thu, 7 Jul 2022 12:38:19 +0000
(12:38 +0000)
usr.sbin/bgpd/rde.c
patch
|
blob
|
history
diff --git
a/usr.sbin/bgpd/rde.c
b/usr.sbin/bgpd/rde.c
index
7fa7440
..
cd15b87
100644
(file)
--- a/
usr.sbin/bgpd/rde.c
+++ b/
usr.sbin/bgpd/rde.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: rde.c,v 1.5
49 2022/07/07 12:16:04
claudio Exp $ */
+/* $OpenBSD: rde.c,v 1.5
50 2022/07/07 12:38:19
claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@
-2474,6
+2474,8
@@
rde_dump_rib_as(struct prefix *p, struct rde_aspath *asp, pid_t pid, int flags,
xp = NULL; /* stop loop */
break;
}
+ if (xp == NULL || xp == p)
+ break;
}
if (!peer->conf.ebgp)
rib.flags |= F_PREF_INTERNAL;