Re: [nft PATCH] json: Work around segfault when encountering xt stmt

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

 



On Wed, Oct 24, 2018 at 09:14:37PM +0200, Phil Sutter wrote:
> When trying to convert an xt stmt into JSON, print() callback was
> called. Though the code in src/xt.c does not respect output_fp,
> therefore buffer wasn't filled as expected making libjansson to puke:
> 
> | # nft -j list ruleset
> | warning: stmt ops xt have no json callback
> | nft: json.c:169: stmt_print_json: Assertion `__out' failed.
> | Aborted (core dumped)
> 
> Avoid this by detecting xt stmt ops and returning a stub.

Applied, thanks Phil.



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

  Powered by Linux