diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-04-10 07:33:45 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-04-10 07:33:45 +0000 |
commit | 05caa31ef0823f91c5863d1370332e0c9a64e214 (patch) | |
tree | c2e0f09385c2f9ff140f72c19f362c8f400ec90e /sys | |
parent | e3aaffb5c351fad2a905355ac8b0703721d089f4 (diff) |
Oops on sanity logic.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/ip_ether.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ip_ether.c b/sys/netinet/ip_ether.c index 3072498f36a..fc2d0cd17bd 100644 --- a/sys/netinet/ip_ether.c +++ b/sys/netinet/ip_ether.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ether.c,v 1.6 2000/01/07 21:59:34 angelos Exp $ */ +/* $OpenBSD: ip_ether.c,v 1.7 2000/04/10 07:33:44 angelos Exp $ */ /* * The author of this code is Angelos D. Keromytis (kermit@adk.gr) @@ -207,8 +207,8 @@ etherip_output(struct mbuf *m, struct tdb *tdb, struct mbuf **mp, int skip, /* Some address family sanity checks */ if ((tdb->tdb_src.sa.sa_family != 0) && - ((tdb->tdb_src.sa.sa_family != AF_INET) || - (tdb->tdb_src.sa.sa_family != AF_INET6))) + (tdb->tdb_src.sa.sa_family != AF_INET) && + (tdb->tdb_src.sa.sa_family != AF_INET6)) { DPRINTF(("etherip_output(): IP in protocol-family <%d> attempted, aborting", tdb->tdb_src.sa.sa_family)); etheripstat.etherip_adrops++; |