summaryrefslogtreecommitdiffstats
path: root/iptables.c
diff options
context:
space:
mode:
authorlaforge <laforge>2002-05-04 10:37:52 +0000
committerlaforge <laforge>2002-05-04 10:37:52 +0000
commitfa2713cc37d19ad4872218277a1813f68e1fc296 (patch)
treea031fdf6bc93c9138a2950cdf7107f119939c0e8 /iptables.c
parentee16ac696abd183fef6e51a7952bcfc47d46bbc7 (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 b5d3579..66f41a6 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 */