svn commit: r318133 - stable/11/sbin/ipfw
Andrey V. Elsukov
ae at FreeBSD.org
Wed May 10 05:04:18 UTC 2017
Author: ae
Date: Wed May 10 05:04:16 2017
New Revision: 318133
URL: https://svnweb.freebsd.org/changeset/base/318133
Log:
MFC r317667:
In parse_range() validate both range values instead of checking
the top value twice.
PR: 202295
Modified:
stable/11/sbin/ipfw/dummynet.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sbin/ipfw/dummynet.c
==============================================================================
--- stable/11/sbin/ipfw/dummynet.c Wed May 10 05:02:38 2017 (r318132)
+++ stable/11/sbin/ipfw/dummynet.c Wed May 10 05:04:16 2017 (r318133)
@@ -1881,7 +1881,7 @@ parse_range(int ac, char *av[], uint32_t
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 */
}
More information about the svn-src-stable-11
mailing list