make find_target() and find_match() honor LOAD_MUST_SUCCEED when NO_SHARED_LIBS
is defined.
diff --git a/ip6tables.c b/ip6tables.c
index b4d6ea5..dad9052 100644
--- a/ip6tables.c
+++ b/ip6tables.c
@@ -740,6 +740,10 @@
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 @@
else
ptr = NULL;
}
+ if(!ptr && (tryload == LOAD_MUST_SUCCEED)) {
+ exit_error(PARAMETER_PROBLEM,
+ "Couldn't find target `%s'\n", name);
+ }
#endif
if (ptr)