diff options
author | Changli Gao <xiaosuo@gmail.com> | 2011-03-14 14:23:31 +0800 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2011-05-09 11:41:00 +0200 |
commit | 7c816547270050ccc29fb07c9e62c230e015c8e3 (patch) | |
tree | 7c670407469906e6324b988b04f22e623b85bfeb /xshared.c | |
parent | edc2b1adf32d2b11e126174f525293b3bca6e7bc (diff) |
iptables: fix the dead loop when meeting unknown options
Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Diffstat (limited to 'xshared.c')
-rw-r--r-- | xshared.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -92,7 +92,7 @@ static bool should_load_proto(struct iptables_command_state *cs) if (find_proto(cs->protocol, XTF_DONT_LOAD, cs->options & OPT_NUMERIC, NULL) == NULL) return true; - return cs->proto_used; + return !cs->proto_used; } struct xtables_match *load_proto(struct iptables_command_state *cs) |