summaryrefslogtreecommitdiffstats
path: root/xshared.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2011-03-01 02:45:34 +0100
committerJan Engelhardt <jengelh@medozas.de>2011-03-01 15:43:38 +0100
commitee52e00adfb10250e1828b94e43d9482bb201827 (patch)
treeb2de1844cbdc00c79058a178e9f6f10181427240 /xshared.c
parent2ad8dc895ec28a173c629c695c2e11c41b625b6e (diff)
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 <jengelh@medozas.de>
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 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;
}