diff options
author | silby <silby@FreeBSD.org> | 2003-02-26 07:28:35 +0000 |
---|---|---|
committer | silby <silby@FreeBSD.org> | 2003-02-26 07:28:35 +0000 |
commit | fc22f276ed187379f1e4843ec1da8d3e5707468a (patch) | |
tree | c57d101ce239040357218936d4b8b756f70d37f2 /sys/netinet | |
parent | c3f9ec487b6e9b49b8f7ef15fc6370e4f5edc318 (diff) | |
download | FreeBSD-src-fc22f276ed187379f1e4843ec1da8d3e5707468a.zip FreeBSD-src-fc22f276ed187379f1e4843ec1da8d3e5707468a.tar.gz |
Fix a condition so that ip reassembly queues are emptied immediately
when maxfragpackets is dropped to 0.
Noticed by: bmah
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index efe50c0..afac57c 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -1252,7 +1252,7 @@ ip_slowtimo() * (due to the limit being lowered), drain off * enough to get down to the new limit. */ - if (maxnipq > 0 && nipq > maxnipq) { + if (maxnipq >= 0 && nipq > maxnipq) { for (i = 0; i < IPREASS_NHASH; i++) { while (nipq > maxnipq && !TAILQ_EMPTY(&ipq[i])) { ipstat.ips_fragdropped += |