diff options
author | Robert de Barth <list-netfilter@debarth.co.uk> | 2005-07-31 07:04:59 +0000 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2005-07-31 07:04:59 +0000 |
commit | feca0578a5d035122b4b7cdb8d44d6cca819f35c (patch) | |
tree | e4740cf127384d75cdcfb2cd5452d55d7512efff | |
parent | 2ed4f1bb46af965a32c62df8bd59498ecdc7ab37 (diff) |
_really_ sort only user defined chains (Robert de Barth <list-netfilter@debarth.co.uk>
-rw-r--r-- | libiptc/libiptc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libiptc/libiptc.c b/libiptc/libiptc.c index 7546d87b..452ac134 100644 --- a/libiptc/libiptc.c +++ b/libiptc/libiptc.c @@ -399,7 +399,7 @@ static inline void iptc_insert_chain(TC_HANDLE_T h, struct chain_head *c) /* 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; } |