diff options
author | Marc Boucher <marc@mbsi.ca> | 2002-03-24 15:09:31 +0000 |
---|---|---|
committer | Marc Boucher <marc@mbsi.ca> | 2002-03-24 15:09:31 +0000 |
commit | 067477b4cabfea38d8dd6394194b75083e504615 (patch) | |
tree | 8ee07038eb98253b1ab70f0b583827845a14add0 /iptables.c | |
parent | 07b69b60e98f7be23b7038b64b6d170be3ab7791 (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.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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) |