summaryrefslogtreecommitdiffstats
path: root/usr.sbin/map-mbone
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2016-08-03 23:13:54 +0000
committerkrw <krw@openbsd.org>2016-08-03 23:13:54 +0000
commit5ae4c81e21152c3aec1e7a652d66222f43be3ed7 (patch)
tree13f958ac36970d7614969ae615d58b68ce2a1cf7 /usr.sbin/map-mbone
parentmove acpimcfg to keep list sorted (diff)
downloadwireguard-openbsd-5ae4c81e21152c3aec1e7a652d66222f43be3ed7.tar.xz
wireguard-openbsd-5ae4c81e21152c3aec1e7a652d66222f43be3ed7.zip
Apply fix from mrouted 3.8 via NetBSD. Our mbone support may
be slightly dated. Spotted by the Echelon team with AppChecker static analyzer.
Diffstat (limited to 'usr.sbin/map-mbone')
-rw-r--r--usr.sbin/map-mbone/mapper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/map-mbone/mapper.c b/usr.sbin/map-mbone/mapper.c
index be305fd6a5a..a1bcbab7cd0 100644
--- a/usr.sbin/map-mbone/mapper.c
+++ b/usr.sbin/map-mbone/mapper.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mapper.c,v 1.23 2015/08/20 22:39:29 deraadt Exp $ */
+/* $OpenBSD: mapper.c,v 1.24 2016/08/03 23:13:54 krw Exp $ */
/* $NetBSD: mapper.c,v 1.3 1995/12/10 11:12:04 mycroft Exp $ */
/* Mapper for connections between MRouteD multicast routers.
@@ -495,7 +495,7 @@ void accept_neighbors2(u_int32_t src, u_int32_t dst, u_char *p, int datalen,
for (nb_n = old_neighbors; nb_n; nb_n = nb_n->next)
if (nb_i->addr == nb_n->addr) {
if (nb_i->metric != nb_n->metric
- || nb_i->threshold != nb_i->threshold)
+ || nb_i->threshold != nb_n->threshold)
logit(LOG_WARNING, 0,
"inconsistent %s for neighbor %s of %s",
"metric/threshold",