summaryrefslogtreecommitdiffstats
path: root/iptables-save.c
diff options
context:
space:
mode:
Diffstat (limited to 'iptables-save.c')
-rw-r--r--iptables-save.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/iptables-save.c b/iptables-save.c
index 6b0e4199..2a86718e 100644
--- a/iptables-save.c
+++ b/iptables-save.c
@@ -123,7 +123,8 @@ static void print_rule(const struct ipt_entry *e, int counters)
/* Print matchinfo part */
if (e->match_name[0]) {
- struct iptables_match *match = find_match(e->match_name, 1);
+ struct iptables_match *match
+ = find_match(e->match_name, TRY_LOAD);
if (match)
match->save(e);
@@ -142,7 +143,7 @@ static void print_rule(const struct ipt_entry *e, int counters)
/* Print targinfo part */
if (e->target_name[0]) {
struct iptables_target *target
- = find_target(e->target_name, 1);
+ = find_target(e->target_name, TRY_LOAD);
if (target)
target->save(e);