Some fixes for JSON support
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | libnftables: Print errors before freeing commandssrc/ | +2 | 0 replies | |
| 2/5 | parser_json: Duplicate chain name when parsing jump verdictsrc/ | +2 | 0 replies | |
| 3/5 | parser_json: Use xstrdup() when parsing rule commentsrc/ | +1 | 0 replies | |
| 4/5 | json: Fix memleaks in echo supportsrc/ | +18 | 5 replies | |
| 5/5 | parser_json: Respect base chain prioritysrc/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [nft PATCH 0/5] Some fixes for JSON support
The first patch is actually a generic libnftables fix, it prevents a segfault when reporting parser errors.
The remaining fixes were found when trying to parse a ruleset prepared by firewalld (JSON API usage is WiP there). Seems like increasing test coverage really is in order.
Phil Sutter (5):
libnftables: Print errors before freeing commands
parser_json: Duplicate chain name when parsing jump verdict
parser_json: Use xstrdup() when parsing rule comment
json: Fix memleaks in echo support
parser_json: Respect base chain priority
src/libnftables.c | 4 ++-- src/parser_json.c | 34 ++++++++++++++++++++++------------ 2 files changed, 24 insertions(+), 14 deletions(-)
Signature · 1 line
2.20.1