diff options
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) |