remove redundant check against ifa_dstaddr.
authoritojun <itojun@openbsd.org>
Sun, 12 Mar 2000 03:54:43 +0000 (03:54 +0000)
committeritojun <itojun@openbsd.org>
Sun, 12 Mar 2000 03:54:43 +0000 (03:54 +0000)
sys/net/if.c

index 0e9b28c..9109dcb 100644 (file)
@@ -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 &&