From f6e584cd1e3b72d39d55c328aba0f75dd933f907 Mon Sep 17 00:00:00 2001 From: itojun Date: Sun, 12 Mar 2000 03:54:43 +0000 Subject: [PATCH] remove redundant check against ifa_dstaddr. --- sys/net/if.c | 4 +--- 1 file changed, 1 insertion(+), 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 && -- 2.20.1