Re: [iptables PATCH v4 5/5] xtables: Do not change ruleset while listing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Dec 30, 2018 at 08:06:12PM +0100, Phil Sutter wrote:
> diff --git a/iptables/xtables.c b/iptables/xtables.c
> index da11e8cc159a0..28223e8edc799 100644
> --- a/iptables/xtables.c
> +++ b/iptables/xtables.c
> @@ -1139,6 +1139,8 @@ int do_commandx(struct nft_handle *h, int argc, char *argv[], char **table,
>  				   cs.options & OPT_NUMERIC,
>  				   cs.options & OPT_EXPANDED,
>  				   cs.options & OPT_LINENUMBERS);
> +		if (p.command == CMD_LIST)
> +			nft_abort(h);

Goal of this patch is to reset the batch of any pending object to be
added before -L call?

Let me know, thanks!



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux