summaryrefslogtreecommitdiffstats
path: root/xshared.c
diff options
context:
space:
mode:
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)