summaryrefslogtreecommitdiffstats
path: root/iptables.c
diff options
context:
space:
mode:
authormarc <marc>2002-03-24 15:09:31 +0000
committermarc <marc>2002-03-24 15:09:31 +0000
commit14f292ef89cfb08b9ec0f2c2de41df679685ec02 (patch)
tree8ee07038eb98253b1ab70f0b583827845a14add0 /iptables.c
parent471cadf2b647f7e9ecf486d4032458437ac44ced (diff)
make find_target() and find_match() honor LOAD_MUST_SUCCEED when NO_SHARED_LIBS
is defined.
Diffstat (limited to 'iptables.c')
-rw-r--r--iptables.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/iptables.c b/iptables.c
index 8e4c13a..b5d3579 100644
--- a/iptables.c
+++ b/iptables.c
@@ -681,6 +681,10 @@ find_match(const char *name, enum ipt_tryload tryload)
else
ptr = NULL;
}
+ if(!ptr && (tryload == LOAD_MUST_SUCCEED)) {
+ exit_error(PARAMETER_PROBLEM,
+ "Couldn't find match `%s'\n", name);
+ }
#endif
if (ptr)
@@ -952,6 +956,10 @@ find_target(const char *name, enum ipt_tryload tryload)
else
ptr = NULL;
}
+ if(!ptr && (tryload == LOAD_MUST_SUCCEED)) {
+ exit_error(PARAMETER_PROBLEM,
+ "Couldn't find target `%s'\n", name);
+ }
#endif
if (ptr)