summaryrefslogtreecommitdiffstats
path: root/iptables.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2002-05-04 10:37:52 +0000
committerHarald Welte <laforge@gnumonks.org>2002-05-04 10:37:52 +0000
commit731a7281dab2c035ba79a22781744fbc9c3d0271 (patch)
treea031fdf6bc93c9138a2950cdf7107f119939c0e8 /iptables.c
parent2ea56498b07506c00a511ddee39cb1c4bd85457d (diff)
remove check of find_proto(), since do_command() can be called multiple times,
and match will be loaded after first call.
Diffstat (limited to 'iptables.c')
-rw-r--r--iptables.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/iptables.c b/iptables.c
index b5d35791..66f41a66 100644
--- a/iptables.c
+++ b/iptables.c
@@ -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 */