From 9d18ee7303ef26826d2c96ca85f93c5aa631e565 Mon Sep 17 00:00:00 2001 From: rdivacky Date: Tue, 16 Jun 2009 13:31:01 +0000 Subject: 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) --- contrib/ipfilter/tools/ipfcomp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/ipfilter') diff --git a/contrib/ipfilter/tools/ipfcomp.c b/contrib/ipfilter/tools/ipfcomp.c index 1e26de5..e00fe84 100644 --- a/contrib/ipfilter/tools/ipfcomp.c +++ b/contrib/ipfilter/tools/ipfcomp.c @@ -382,7 +382,7 @@ extern frentry_t *ipfrule_match_out_%s __P((fr_info_t *, u_32_t *));\n\ 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) -- cgit v1.1