From ee52e00adfb10250e1828b94e43d9482bb201827 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 1 Mar 2011 02:45:34 +0100 Subject: iptables: fix an inversion Revisiting the original condition (viewable in git log -1 -p v1.4.10-57-gacef604), one can notice an unforuntate inversion. This commit corrects this. Testcase: -A INPUT -p tcp --dport 1 Reported-by: Florian Westphal Signed-off-by: Jan Engelhardt --- xshared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xshared.c') diff --git a/xshared.c b/xshared.c index b47beb1e..c5a9015d 100644 --- a/xshared.c +++ b/xshared.c @@ -87,7 +87,7 @@ static bool should_load_proto(struct iptables_command_state *cs) if (cs->protocol == NULL) return false; if (find_proto(cs->protocol, XTF_DONT_LOAD, - cs->options & OPT_NUMERIC, NULL) != NULL) + cs->options & OPT_NUMERIC, NULL) == NULL) return true; return cs->proto_used; } -- cgit v1.2.3