diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-03 17:50:36 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-03 17:50:36 +0000 |
commit | 250472c7887a2e25d5bbbcabfeb52c0385270081 (patch) | |
tree | cc824d78212fb641520ae1b503ebcd443a165b16 /sys/net/if.c | |
parent | a60fa55692dd3ac969e5dc65db8883d7f03b6d19 (diff) |
dst addr might be NULL; netbsd pr#2183; chuck@maria.wustl.edu
Diffstat (limited to 'sys/net/if.c')
-rw-r--r-- | sys/net/if.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 07e08687a9a..6e680460266 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.11 1996/07/02 06:52:05 niklas Exp $ */ +/* $OpenBSD: if.c,v 1.12 1996/08/03 17:50:35 deraadt Exp $ */ /* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */ /* @@ -173,6 +173,8 @@ 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 && |