summaryrefslogtreecommitdiffstats
path: root/src/statement.c
diff options
context:
space:
mode:
authorElise Lennion <elise.lennion@gmail.com>2017-01-18 21:06:47 -0200
committerPablo Neira Ayuso <pablo@netfilter.org>2017-01-23 14:26:16 +0100
commit1967b4f67cfbb64d12fc4953db35e3d7aa5f773e (patch)
treed7b7c8ee574de41091196622f693f9eab68b73ff /src/statement.c
parentf7a68589c0b3bf2085c9066d99d6ee680c6e6751 (diff)
src: Honor obligatory stateless printing of flow tables
Always print flow statement as stateless expressions, given that this just defines the flow table statement instance that is allocated per entry. Signed-off-by: Elise Lennion <elise.lennion@gmail.com>
Diffstat (limited to 'src/statement.c')
-rw-r--r--src/statement.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/statement.c b/src/statement.c
index 25bed65f..9cdabbb9 100644
--- a/src/statement.c
+++ b/src/statement.c
@@ -117,8 +117,13 @@ static void flow_stmt_print(const struct stmt *stmt)
printf("{ ");
expr_print(stmt->flow.key);
printf(" ");
+
+ stateless_output++;
stmt_print(stmt->flow.stmt);
+ stateless_output--;
+
printf("} ");
+
}
static void flow_stmt_destroy(struct stmt *stmt)