summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrusty <rusty>2000-05-12 14:04:50 +0000
committerrusty <rusty>2000-05-12 14:04:50 +0000
commit72d16369f738fe1235f4486b901c42070f23440e (patch)
tree6f3a3aa92041849988df2fd242cf9fd67bd44fd2
parentb8f0ebb3cdfe8ae84dc559edc75ff64dd8a1e8dc (diff)
Fixed protocol-by-number loading.svn_t_rel-1-1-0
-rw-r--r--iptables.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iptables.c b/iptables.c
index 4854a7c..44250e1 100644
--- a/iptables.c
+++ b/iptables.c
@@ -1757,7 +1757,7 @@ int do_command(int argc, char *argv[], char **table, iptc_handle_t *handle)
+ m->size);
m->m = fw_calloc(1, size);
m->m->u.match_size = size;
- strcpy(m->m->u.user.name, optarg);
+ strcpy(m->m->u.user.name, m->name);
m->init(m->m, &fw.nfcache);
}
break;
@@ -1839,7 +1839,7 @@ int do_command(int argc, char *argv[], char **table, iptc_handle_t *handle)
m->m = fw_calloc(1, size);
m->m->u.match_size = size;
- strcpy(m->m->u.user.name, protocol);
+ strcpy(m->m->u.user.name, m->name);
m->init(m->m, &fw.nfcache);
optind--;