summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2010-09-30 08:57:38 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2010-09-30 08:57:38 +0000
commit34078964494710548be572cc5a1727fc4095a172 (patch)
treee697ee10f1c09be280c60dfbbb651f241f018d94
parenta07810d87d77f0206c3aac8b836a3191915b35c5 (diff)
Only 6 elements of mib are used so do allocate 6 not 7.
-rw-r--r--usr.sbin/bgpd/kroute.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/kroute.c b/usr.sbin/bgpd/kroute.c
index 2ab93d78655..3d15a86ffac 100644
--- a/usr.sbin/bgpd/kroute.c
+++ b/usr.sbin/bgpd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.184 2010/09/02 14:03:21 sobrado Exp $ */
+/* $OpenBSD: kroute.c,v 1.185 2010/09/30 08:57:37 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -421,7 +421,7 @@ ktable_exists(u_int rtableid, u_int *rdomid)
{
size_t len;
struct rt_tableinfo info;
- int mib[7];
+ int mib[6];
mib[0] = CTL_NET;
mib[1] = AF_ROUTE;