diff options
author | Florian Westphal <fw@strlen.de> | 2021-06-02 12:47:24 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2021-06-02 13:54:59 +0200 |
commit | 790889957b48f4d28dc1699bd6c193617f2141b3 (patch) | |
tree | 45de59b37e763edb85d2d55a90a8f1897be764ca /src | |
parent | 6fad96cde865e074d5a01f872170d9cc85baac6f (diff) |
json: fix base chain output
nft-test.py -j fails with
python: json.c:243: chain_print_json: Assertion `__out' failed.
The member was changed from char * to a struct, pass the name again.
Fixes: 5008798157e2114f ("libnftables: location-based error reporting for chain type")
Signed-off-by: Florian Westphal <fw@strlen.de>
(cherry picked from commit cabe8992b3ee4eb0001a07075b317d966df6bcbd)
Diffstat (limited to 'src')
-rw-r--r-- | src/json.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -241,7 +241,7 @@ static json_t *chain_print_json(const struct chain *chain) mpz_export_data(&policy, chain->policy->value, BYTEORDER_HOST_ENDIAN, sizeof(int)); tmp = json_pack("{s:s, s:s, s:i, s:s}", - "type", chain->type, + "type", chain->type.str, "hook", hooknum2str(chain->handle.family, chain->hook.num), "prio", priority, |