svn commit: r194290 - head/contrib/ipfilter/tools

Roman Divacky rdivacky at FreeBSD.org
Tue Jun 16 13:31:02 UTC 2009


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)


More information about the svn-src-all mailing list