From aa2047203639f00d0f249e2ae4e76d20279dd755 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 11 Aug 2000 14:02:27 +0000 Subject: Report error when a shared target can't be opened - Hawald Welte. --- iptables.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'iptables.c') 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; -- cgit v1.2.3