diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-11-24 17:01:05 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-11-24 17:01:05 +0000 |
commit | 92965fe426af64c9ea720b8582d20773348e2529 (patch) | |
tree | daef062829acc8d05e5d6bb54c14f6a5d5697977 | |
parent | 8bd047c972b8fbac3e6d58030ac3a2f1e57a66bc (diff) |
Another missing RTM_VERSION check. This will remove the RB_INSERT warnings
seen on startup.
-rw-r--r-- | usr.sbin/bgpd/kroute.c | 4 |
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; |