From de59f66c37dd29d55939249482c6087a2f307d19 Mon Sep 17 00:00:00 2001 From: mpi Date: Mon, 20 Apr 2015 09:12:57 +0000 Subject: [PATCH] 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@ --- sys/net/route.c | 4 ++-- 1 file 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); -- 2.20.1