]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Fixed protocol-by-number loading. v1.1.0
authorRusty Russell <rusty@linuxcare.com.au>
Fri, 12 May 2000 14:04:50 +0000 (14:04 +0000)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 12 May 2000 14:04:50 +0000 (14:04 +0000)
iptables.c

index 4854a7cdac02c797b95536766545a04c5dda4623..44250e1d650fd1aae5ef285f17b9cc31c5cc1867 100644 (file)
@@ -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--;