summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-03-12 03:54:44 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-03-12 03:54:44 +0000
commitfafe1d890b8a4a29216bc050db5f45a4d3119f7c (patch)
tree332f8498e4a91860886418586dcccec4e31d1d1d /sys/net
parent842e01cb4feb94d6fdc4d2216e6febf3af3daccc (diff)
remove redundant check against ifa_dstaddr.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 0e9b28c799a..9109dcbedb6 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.27 2000/01/02 05:28:24 deraadt Exp $ */
+/* $OpenBSD: if.c,v 1.28 2000/03/12 03:54:43 itojun Exp $ */
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
@@ -370,8 +370,6 @@ ifa_ifwithaddr(addr)
for (ifa = ifp->if_addrlist.tqh_first; ifa != 0; ifa = ifa->ifa_list.tqe_next) {
if (ifa->ifa_addr->sa_family != addr->sa_family)
continue;
- if (ifa->ifa_dstaddr == NULL)
- continue;
if (equal(addr, ifa->ifa_addr))
return (ifa);
if ((ifp->if_flags & IFF_BROADCAST) && ifa->ifa_broadaddr &&