From: angelos Date: Mon, 10 Apr 2000 07:33:44 +0000 (+0000) Subject: Oops on sanity logic. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f0f5fe561c79a3c1ce04396eaf660b077fdecd51;p=openbsd Oops on sanity logic. --- 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++;