From f0f5fe561c79a3c1ce04396eaf660b077fdecd51 Mon Sep 17 00:00:00 2001 From: angelos Date: Mon, 10 Apr 2000 07:33:44 +0000 Subject: [PATCH] Oops on sanity logic. --- sys/netinet/ip_ether.c | 6 +++--- 1 file 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++; -- 2.20.1