summaryrefslogtreecommitdiff
path: root/usr.sbin/ospf6d
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2011-07-07 03:57:00 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2011-07-07 03:57:00 +0000
commitcc1719a6ee888fec54c58d898bdbbb724c7a727c (patch)
treea0a0a0d078c423082ced6babec08ae7b5b527145 /usr.sbin/ospf6d
parent80374085e6ac497e42fada6264db74f21ca51a74 (diff)
Commit stuff that I added to another tree eventhough it should have
been in the last commit. I should not work on multiple laptops at the same time.
Diffstat (limited to 'usr.sbin/ospf6d')
-rw-r--r--usr.sbin/ospf6d/kroute.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ospf6d/kroute.c b/usr.sbin/ospf6d/kroute.c
index feef9084eaa..4462c9ba09a 100644
--- a/usr.sbin/ospf6d/kroute.c
+++ b/usr.sbin/ospf6d/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.32 2011/07/07 00:36:13 claudio Exp $ */
+/* $OpenBSD: kroute.c,v 1.33 2011/07/07 03:56:59 claudio Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@@ -645,7 +645,7 @@ kif_validate(u_short ifindex)
if ((iface = if_find(ifindex)) == NULL) {
log_warnx("interface with index %u not found", ifindex);
- return (1);
+ return (-1);
}
return ((iface->flags & IFF_UP) && LINK_STATE_IS_UP(iface->linkstate));
@@ -1265,7 +1265,7 @@ fetchifs(u_short ifindex)
return (-1);
}
if ((buf = malloc(len)) == NULL) {
- log_warn("fetchif");
+ log_warn("fetchifs");
return (-1);
}
if (sysctl(mib, 6, buf, &len, NULL, 0) == -1) {