]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
remove check of find_proto(), since do_command() can be called multiple times,
authorHarald Welte <laforge@gnumonks.org>
Sat, 4 May 2002 10:37:52 +0000 (10:37 +0000)
committerHarald Welte <laforge@gnumonks.org>
Sat, 4 May 2002 10:37:52 +0000 (10:37 +0000)
and match will be loaded after first call.

iptables.c

index b5d35791b186080c3dc549b1ac5ab5d5f9a84b93..66f41a6642a2cf883024aae2d25b2cf2f6dc274c 100644 (file)
@@ -2054,8 +2054,6 @@ int do_command(int argc, char *argv[], char **table, iptc_handle_t *handle)
                                   actually hear this code suck. */
                                if (m == NULL
                                    && protocol
-                                   && !find_proto(protocol, DONT_LOAD,
-                                                  options&OPT_NUMERIC)
                                    && (m = find_proto(protocol, TRY_LOAD,
                                                       options&OPT_NUMERIC))) {
                                        /* Try loading protocol */