summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-09-16 18:47:59 +0000
committerbrian <brian@FreeBSD.org>1999-09-16 18:47:59 +0000
commit46ca602b1a85d77db37240e03b1926c909ace979 (patch)
tree497a1009902a3923ddee262b1d4ead5b14f5a2a6 /usr.sbin
parent02027682ef7177b3980a3af60c19ee3480aac35f (diff)
downloadFreeBSD-src-46ca602b1a85d77db37240e03b1926c909ace979.zip
FreeBSD-src-46ca602b1a85d77db37240e03b1926c909ace979.tar.gz
Correct the return from FilterCheck for fragments
PR: 13771 Submitted by: Dean M. Phillips <dphill@inav.net>
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ppp/ip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/ip.c b/usr.sbin/ppp/ip.c
index 6d8d8d8..f1219d0 100644
--- a/usr.sbin/ppp/ip.c
+++ b/usr.sbin/ppp/ip.c
@@ -121,7 +121,7 @@ FilterCheck(const struct ip *pip, const struct filter *filter)
if (len < (24 >> 3)) /* don't allow fragment to over-write header */
return (1);
/* permit fragments on in and out filter */
- return (filter->fragok);
+ return (!filter->fragok);
}
cproto = gotinfo = estab = syn = finrst = didname = 0;
OpenPOWER on IntegriCloud