Re: [nft PATCH] libnftables: Fix exit_cookie()

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

 



On Wed, Jun 13, 2018 at 07:18:24PM +0200, Phil Sutter wrote:
> The output and error buffer feature depends on cookie->orig_fp to
> indicate the current status of buffering: If it is set, a prior call to
> init_cookie() is assumed. Though exit_cookie() missed to reset that
> pointer to NULL. causing weird behaviour in applications if they do:
> 
> | nft = nft_ctx_new(0);
> | nft_ctx_buffer_output(nft);
> | nft_ctx_unbuffer_output(nft);
> | nft_ctx_buffer_output(nft);
> 
> While being at it, apply the same fix to error path in init_cookie() as
> well.

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



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

  Powered by Linux