diff options
author | 2000-03-12 03:54:43 +0000 | |
---|---|---|
committer | 2000-03-12 03:54:43 +0000 | |
commit | f6e584cd1e3b72d39d55c328aba0f75dd933f907 (patch) | |
tree | 99c093eb2547e3d627ec80ef3289d84bc987dd86 /sys | |
parent | grammar (diff) | |
download | wireguard-openbsd-f6e584cd1e3b72d39d55c328aba0f75dd933f907.tar.xz wireguard-openbsd-f6e584cd1e3b72d39d55c328aba0f75dd933f907.zip |
remove redundant check against ifa_dstaddr.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if.c | 4 |
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 && |