summaryrefslogtreecommitdiffstats
path: root/sbin/ipfw
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2017-05-10 05:04:16 +0000
committerae <ae@FreeBSD.org>2017-05-10 05:04:16 +0000
commiteb416a82609ee88948139b557fd027b05f0fa2b4 (patch)
treee3ac8884b01c8528886d842fe1e046a7f238fecd /sbin/ipfw
parenta508f0c8f4dbacd44dc1c7598e67b43c17fa7e2b (diff)
downloadFreeBSD-src-eb416a82609ee88948139b557fd027b05f0fa2b4.zip
FreeBSD-src-eb416a82609ee88948139b557fd027b05f0fa2b4.tar.gz
MFC r317667:
In parse_range() validate both range values instead of checking the top value twice. PR: 202295
Diffstat (limited to 'sbin/ipfw')
-rw-r--r--sbin/ipfw/dummynet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ipfw/dummynet.c b/sbin/ipfw/dummynet.c
index 20c563b..e26171f 100644
--- a/sbin/ipfw/dummynet.c
+++ b/sbin/ipfw/dummynet.c
@@ -1881,7 +1881,7 @@ parse_range(int ac, char *av[], uint32_t *v, int len)
av--;
}
if (v[1] < v[0] ||
- v[1] >= DN_MAX_ID-1 ||
+ v[0] >= DN_MAX_ID-1 ||
v[1] >= DN_MAX_ID-1) {
continue; /* invalid entry */
}
OpenPOWER on IntegriCloud