summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2007-11-24 17:01:04 +0000
committerclaudio <claudio@openbsd.org>2007-11-24 17:01:04 +0000
commite277fa95019a194801c7e4abf91f7236daf3ee89 (patch)
tree62524405c8d9ae4238e0d527dd03a8d572f56d2e
parenttypo (diff)
downloadwireguard-openbsd-e277fa95019a194801c7e4abf91f7236daf3ee89.tar.xz
wireguard-openbsd-e277fa95019a194801c7e4abf91f7236daf3ee89.zip
Another missing RTM_VERSION check. This will remove the RB_INSERT warnings
seen on startup.
-rw-r--r--usr.sbin/bgpd/kroute.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/kroute.c b/usr.sbin/bgpd/kroute.c
index f0d7aa4fd5e..12c1c091381 100644
--- a/usr.sbin/bgpd/kroute.c
+++ b/usr.sbin/bgpd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.156 2007/11/24 12:59:28 jmc Exp $ */
+/* $OpenBSD: kroute.c,v 1.157 2007/11/24 17:01:04 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -2170,6 +2170,8 @@ fetchifs(int ifindex)
lim = buf + len;
for (next = buf; next < lim; next += ifm.ifm_msglen) {
memcpy(&ifm, next, sizeof(ifm));
+ if (ifm.ifm_version != RTM_VERSION)
+ continue;
if (ifm.ifm_type != RTM_IFINFO)
continue;