Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jun 2009 13:31:01 +0000 (UTC)
From:      Roman Divacky <rdivacky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r194290 - head/contrib/ipfilter/tools
Message-ID:  <200906161331.n5GDV1Gc028804@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rdivacky
Date: Tue Jun 16 13:31:01 2009
New Revision: 194290
URL: http://svn.freebsd.org/changeset/base/194290

Log:
  Fix a typo that causes the for loop to exit immediately. There's
  identical loop a few lines above.
  
  Reviewed by: sam
  Approved by: ed (mentor)
  Silence from: darrenr (maintainer)

Modified:
  head/contrib/ipfilter/tools/ipfcomp.c

Modified: head/contrib/ipfilter/tools/ipfcomp.c
==============================================================================
--- head/contrib/ipfilter/tools/ipfcomp.c	Tue Jun 16 13:05:34 2009	(r194289)
+++ head/contrib/ipfilter/tools/ipfcomp.c	Tue Jun 16 13:31:01 2009	(r194290)
@@ -382,7 +382,7 @@ extern frentry_t *ipfrule_match_out_%s _
 extern frentry_t *ipf_rules_out_%s[%d];\n",
 			grp->fg_name, grp->fg_name, outcount);
 
-		for (g = groups; g != g; g = g->fg_next)
+		for (g = groups; g != grp; g = g->fg_next)
 			if ((strncmp(g->fg_name, grp->fg_name,
 				     FR_GROUPLEN) == 0) &&
 			    g->fg_flags == grp->fg_flags)



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