summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/ospfd/kroute.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ospfd/kroute.c b/usr.sbin/ospfd/kroute.c
index 31c1abe472b..318b887a424 100644
--- a/usr.sbin/ospfd/kroute.c
+++ b/usr.sbin/ospfd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.30 2006/04/25 08:01:16 claudio Exp $ */
+/* $OpenBSD: kroute.c,v 1.31 2006/04/28 15:46:10 henning Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@@ -535,8 +535,9 @@ kif_validate(int ifindex)
struct kif_node *kif;
if ((kif = kif_find(ifindex)) == NULL) {
- log_warnx("interface with index %u not found",
- ifindex);
+ if (ifindex > 0)
+ log_warnx("interface with index %u not found",
+ ifindex);
return (1);
}