From: Phil Sutter Date: Fri, 26 Nov 2021 17:26:07 +0000 (+0100) Subject: xtables: Drop xtables' family on demand feature X-Git-Tag: v1.8.8~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d83371c7330632a85a443c09ade2f9e0fac615e4;p=thirdparty%2Fiptables.git xtables: Drop xtables' family on demand feature This conditional h->family assignment was added by commit 3f7877e6be987 ("xtables-restore: add -4 and -6 support") with the intention to support something like 'xtables-restore -6 --- diff --git a/iptables/xtables.c b/iptables/xtables.c index 57bec76c..5c48bd94 100644 --- a/iptables/xtables.c +++ b/iptables/xtables.c @@ -657,10 +657,6 @@ void do_parse(struct nft_handle *h, int argc, char *argv[], xtables_error(PARAMETER_PROBLEM, "nothing appropriate following !"); - /* Set only if required, needed by xtables-restore */ - if (h->family == AF_UNSPEC) - h->family = args->family; - h->ops->post_parse(p->command, cs, args); if (p->command == CMD_REPLACE &&