From: Álvaro Neira Ayuso <alvaroneay@xxxxxxxxx> Changed wrong value in data_reg_chain snprintf Signed-off-by: Alvaro Neira Ayuso <alvaroneay@xxxxxxxxx> --- src/expr/data_reg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/expr/data_reg.c b/src/expr/data_reg.c index fceec5a..825e474 100644 --- a/src/expr/data_reg.c +++ b/src/expr/data_reg.c @@ -359,8 +359,8 @@ int nft_data_reg_snprintf(char *buf, size_t size, union nft_data_reg *reg, case NFT_RULE_O_JSON: return snprintf(buf, size, "\"data_reg\": { \"type\" : \"chain\", " - "\"chain\" : %d" - "}", reg->verdict); + "\"chain\" : \"%s\"" + "}", reg->chain); default: break; } -- 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