Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 May 2017 05:20:54 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r317667 - head/sbin/ipfw
Message-ID:  <201705020520.v425Ks6J065762@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Tue May  2 05:20:54 2017
New Revision: 317667
URL: https://svnweb.freebsd.org/changeset/base/317667

Log:
  In parse_range() validate both range values instead of checking
  the top  value twice.
  
  PR:		202295
  MFC after:	1 week

Modified:
  head/sbin/ipfw/dummynet.c

Modified: head/sbin/ipfw/dummynet.c
==============================================================================
--- head/sbin/ipfw/dummynet.c	Tue May  2 05:02:12 2017	(r317666)
+++ head/sbin/ipfw/dummynet.c	Tue May  2 05:20:54 2017	(r317667)
@@ -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 */
 		}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705020520.v425Ks6J065762>