diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2011-03-01 02:45:34 +0100 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2011-03-01 15:43:38 +0100 |
commit | ee52e00adfb10250e1828b94e43d9482bb201827 (patch) | |
tree | b2de1844cbdc00c79058a178e9f6f10181427240 | |
parent | 2ad8dc895ec28a173c629c695c2e11c41b625b6e (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>
-rw-r--r-- | xshared.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |