summaryrefslogtreecommitdiffstats
path: root/xshared.c
diff options
context:
space:
mode:
authorChangli Gao <xiaosuo@gmail.com>2011-03-14 14:23:31 +0800
committerJan Engelhardt <jengelh@medozas.de>2011-05-09 11:41:00 +0200
commit7c816547270050ccc29fb07c9e62c230e015c8e3 (patch)
tree7c670407469906e6324b988b04f22e623b85bfeb /xshared.c
parentedc2b1adf32d2b11e126174f525293b3bca6e7bc (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xshared.c b/xshared.c
index 404a9f5f..87402b42 100644
--- a/xshared.c
+++ b/xshared.c
@@ -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)