summaryrefslogtreecommitdiffstats
path: root/iptables.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2000-08-11 14:02:27 +0000
committerRusty Russell <rusty@rustcorp.com.au>2000-08-11 14:02:27 +0000
commitaa2047203639f00d0f249e2ae4e76d20279dd755 (patch)
tree3afe9c58847f8606e9059c1b8a05d1b499d56bf5 /iptables.c
parent363112d6100f202124a7a0f0251bfa4c321bd20d (diff)
Report error when a shared target can't be opened - Hawald Welte.
Diffstat (limited to 'iptables.c')
-rw-r--r--iptables.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/iptables.c b/iptables.c
index d974814c..a9d3dcd7 100644
--- a/iptables.c
+++ b/iptables.c
@@ -637,7 +637,8 @@ find_match(const char *name, enum ipt_tryload tryload)
name);
} else if (tryload == LOAD_MUST_SUCCEED)
exit_error(PARAMETER_PROBLEM,
- "Couldn't load match `%s'\n", name);
+ "Couldn't load match `%s':%s\n",
+ name, dlerror());
}
return ptr;
@@ -885,7 +886,8 @@ find_target(const char *name, enum ipt_tryload tryload)
name);
} else if (tryload == LOAD_MUST_SUCCEED)
exit_error(PARAMETER_PROBLEM,
- "Couldn't load target `%s'\n", name);
+ "Couldn't load target `%s':%s\n",
+ name, dlerror());
}
return ptr;
@@ -1717,7 +1719,7 @@ int do_command(int argc, char *argv[], char **table, iptc_handle_t *handle)
set_option(&options, OPT_JUMP, &fw.ip.invflags,
invert);
jumpto = parse_target(optarg);
- target = find_target(jumpto, TRY_LOAD);
+ target = find_target(jumpto, LOAD_MUST_SUCCEED);
if (target) {
size_t size;