]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
json: Drop pointless assignment in exthdr_expr_json()
authorPhil Sutter <phil@nwl.cc>
Fri, 11 Jun 2021 14:23:22 +0000 (16:23 +0200)
committerPhil Sutter <phil@nwl.cc>
Mon, 14 Jun 2021 11:31:07 +0000 (13:31 +0200)
The updated value of 'is_exists' is no longer read at this point.

Fixes: cb21869649208 ("json: tcp: add raw tcp option match support")
Signed-off-by: Phil Sutter <phil@nwl.cc>
src/json.c

index f648ea1b8c1784392af389eae11a671f0552d7c2..f111ad678f8a030fe0747d583a3d00272cc84c88 100644 (file)
@@ -708,7 +708,6 @@ json_t *exthdr_expr_json(const struct expr *expr, struct output_ctx *octx)
                                         "base", expr->exthdr.raw_type,
                                         "offset", expr->exthdr.offset,
                                         "len", expr->len);
-                       is_exists = false;
                }
 
                return json_pack("{s:o}", "tcp option", root);