]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Harald Welte's dynamic loading fix.
authorHarald Welte <laforge@gnumonks.org>
Wed, 30 Aug 2000 02:11:18 +0000 (02:11 +0000)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 30 Aug 2000 02:11:18 +0000 (02:11 +0000)
iptables.c

index 2f18826080bfa23a6702947b95014d6b6a29d099..d94cbd9c103da9b678c680788bb5029bf853da86 100644 (file)
@@ -2005,15 +2005,11 @@ int do_command(int argc, char *argv[], char **table, iptc_handle_t *handle)
                }
 
                if (!target) {
-                       struct ipt_entry_target unknown_target;
-
-                       /* Don't know it.  Must be extension with no
-                           options? */
-                       unknown_target.u.target_size = sizeof(unknown_target);
-                       strcpy(unknown_target.u.user.name, jumpto);
-
-                       e = generate_entry(&fw, iptables_matches,
-                                          &unknown_target);
+                       /* it is no chain, and we can't load a plugin.
+                        * We cannot know if the plugin is corrupt, non
+                        * existant OR if the user just misspelled a 
+                        * chain. */
+                       find_target(jumpto, LOAD_MUST_SUCCEED);
                } else {
                        e = generate_entry(&fw, iptables_matches, target->t);
                }