]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
ebtables-translate: update table name on -t
authorFlorian Westphal <fw@strlen.de>
Thu, 19 Apr 2018 09:44:39 +0000 (11:44 +0200)
committerFlorian Westphal <fw@strlen.de>
Sun, 22 Apr 2018 20:50:55 +0000 (22:50 +0200)
Signed-off-by: Florian Westphal <fw@strlen.de>
iptables/xtables-eb-translate.c

index c40a2935cac476eca33ede930c8f3428f41a75bd..8547a34aab4d7edf7c53b3227e3b419e69203a7a 100644 (file)
@@ -514,6 +514,7 @@ print_zero:
                                              "Table name length cannot exceed %d characters",
                                              EBT_TABLE_MAXNAMELEN - 1);
                        *table = optarg;
+                       p.table = optarg;
                        break;
                case 'i': /* Input interface */
                case 2  : /* Logical input interface */