summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2021-06-11 16:23:22 +0200
committerPhil Sutter <phil@nwl.cc>2021-06-14 13:31:07 +0200
commitc1616dfd1ce40bac197924c8947e1c646e915dca (patch)
tree7c6b91824d7c273bd598779e6b94ef8d88ba4577
parentc2e06beef3390867901080c0d789e3b6257e2b98 (diff)
json: Drop pointless assignment in exthdr_expr_json()
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>
-rw-r--r--src/json.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/json.c b/src/json.c
index f648ea1b..f111ad67 100644
--- a/src/json.c
+++ b/src/json.c
@@ -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);