diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-06-06 20:30:23 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-06-06 20:30:23 +0000 |
commit | e6a95b2fa50e7bafb62c6623e2067e6fbf704b1e (patch) | |
tree | 9cc88e40c755575e35ea778c703416efc2f1b790 | |
parent | 2f17909dd2a7364c8590dec921eebcff0a1c8ccd (diff) |
Uninitialized variable causing havoc on flush. Found by rivo nurges
-rw-r--r-- | sbin/route/route.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c index e903a917084..c65ad4bc984 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.132 2009/05/31 18:02:28 claudio Exp $ */ +/* $OpenBSD: route.c,v 1.133 2009/06/06 20:30:22 claudio Exp $ */ /* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */ /* @@ -220,7 +220,7 @@ flushroutes(int argc, char **argv) struct rt_msghdr *rtm; struct sockaddr *sa; u_char prio = 0; - unsigned int ifindex; + unsigned int ifindex = 0; if (uid) errx(1, "must be root to alter routing table"); |