diff options
author | Toomas Soome <tsoome@me.com> | 2017-02-16 01:48:03 +0200 |
---|---|---|
committer | Dan McDonald <danmcd@joyent.com> | 2017-06-13 16:35:27 -0400 |
commit | d5767f310a0330fcb172a1651b2c9301e53b9aef (patch) | |
tree | 9629097e5d383ef118c33c0cd404967ab6a1bb1b | |
parent | 843c2111b160463f014d325560ad4b051711928e (diff) | |
download | illumos-joyent-d5767f310a0330fcb172a1651b2c9301e53b9aef.tar.gz |
8334 ipf: self-comparison always evaluates to false
Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r-- | usr/src/cmd/ipf/tools/ipfcomp.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/usr/src/cmd/ipf/tools/ipfcomp.c b/usr/src/cmd/ipf/tools/ipfcomp.c index b99a6f8385..15405c1cd3 100644 --- a/usr/src/cmd/ipf/tools/ipfcomp.c +++ b/usr/src/cmd/ipf/tools/ipfcomp.c @@ -7,13 +7,6 @@ * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - -#if !defined(lint) -static const char sccsid[] = "@(#)ip_fil.c 2.41 6/5/96 (C) 1993-2000 Darren Reed"; -static const char rcsid[] = "@(#)$Id: ipfcomp.c,v 1.24.2.2 2004/04/28 10:34:44 darrenr Exp $"; -#endif - #include "ipf.h" @@ -391,7 +384,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) |