[netfilter-cvslog] r4207 - trunk/iptables/libiptc
laforge at netfilter.org
laforge at netfilter.org
Sun Jul 31 09:05:00 CEST 2005
Author: laforge at netfilter.org
Date: 2005-07-31 09:04:59 +0200 (Sun, 31 Jul 2005)
New Revision: 4207
Modified:
trunk/iptables/libiptc/libiptc.c
Log:
_really_ sort only user defined chains (Robert de Barth <list-netfilter at debarth.co.uk>
Modified: trunk/iptables/libiptc/libiptc.c
===================================================================
--- trunk/iptables/libiptc/libiptc.c 2005-07-31 07:00:46 UTC (rev 4206)
+++ trunk/iptables/libiptc/libiptc.c 2005-07-31 07:04:59 UTC (rev 4207)
@@ -399,7 +399,7 @@
/* sort only user defined chains */
if (!c->hooknum) {
list_for_each_entry(tmp, &h->chains, list) {
- if (strcmp(c->name, tmp->name) <= 0) {
+ if (!tmp->hooknum && strcmp(c->name, tmp->name) <= 0) {
list_add(&c->list, tmp->list.prev);
return;
}
More information about the netfilter-cvslog
mailing list