diff options
author | Rusty Russell <rusty@linuxcare.com.au> | 2000-05-12 14:04:50 +0000 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2000-05-12 14:04:50 +0000 |
commit | 27ff3475d2c737a67fc745818a380ffa932e5fba (patch) | |
tree | 6f3a3aa92041849988df2fd242cf9fd67bd44fd2 /iptables.c | |
parent | 67088e73ce7707229c56987868f112051defca5a (diff) |
Fixed protocol-by-number loading.v1.1.0
Diffstat (limited to 'iptables.c')
-rw-r--r-- | iptables.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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--; |