summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-04-20 09:12:58 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-04-20 09:12:58 +0000
commitfe3d7f9a36c0adbebf2104598c71ebaebb7b0fef (patch)
treed98b62b5d885ca8fe58d7ae57406074cd40aac4b
parentf705daffce69cba3aa82a487243eeff765b96a7e (diff)
Remove a bad typo introduced in rev 1.185 and found by jsg@.
Because of this semicolon, a local route was *always* created. This should have no impact except for IPv6 addresses on loopback interfaces for which the IPv6 code was trying to create a route to "::1" twice. This should now be fixed so we can fix the bug that was hidding a bug who was hidding a bug... lalala... ok henning@
-rw-r--r--sys/net/route.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/route.c b/sys/net/route.c
index 47824fde71d..a3d660a3613 100644
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.208 2015/03/26 11:02:44 mpi Exp $ */
+/* $OpenBSD: route.c,v 1.209 2015/04/20 09:12:57 mpi Exp $ */
/* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */
/*
@@ -1268,7 +1268,7 @@ rt_ifa_addlocal(struct ifaddr *ifa)
/* If there is no loopback entry, allocate one. */
rt = rtalloc(ifa->ifa_addr, 0, ifa->ifa_ifp->if_rdomain);
- if (rt == NULL || !ISSET(rt->rt_flags, flags));
+ if (rt == NULL || !ISSET(rt->rt_flags, flags))
error = rt_ifa_add(ifa, RTF_UP | flags, ifa->ifa_addr);
if (rt)
rtfree(rt);