From 7c816547270050ccc29fb07c9e62c230e015c8e3 Mon Sep 17 00:00:00 2001 From: Changli Gao Date: Mon, 14 Mar 2011 14:23:31 +0800 Subject: iptables: fix the dead loop when meeting unknown options Signed-off-by: Changli Gao --- xshared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xshared.c') 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) -- cgit v1.2.3