From de169cac8c2ee91d23cffa69631e7587d7e6cca3 Mon Sep 17 00:00:00 2001 From: Liping Zhang Date: Sun, 25 Sep 2016 16:54:33 +0800 Subject: expr: log: fix typo in nftnl_expr_log_export After test NFTNL_EXPR_LOG_FLAGS is set, we should put "log->flags" instead of "log->level". Signed-off-by: Liping Zhang Signed-off-by: Pablo Neira Ayuso --- src/expr/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/expr/log.c b/src/expr/log.c index 57490d9..e965448 100644 --- a/src/expr/log.c +++ b/src/expr/log.c @@ -264,7 +264,7 @@ static int nftnl_expr_log_export(char *buf, size_t size, if (e->flags & (1 << NFTNL_EXPR_LOG_LEVEL)) nftnl_buf_u32(&b, type, log->level, LEVEL); if (e->flags & (1 << NFTNL_EXPR_LOG_FLAGS)) - nftnl_buf_u32(&b, type, log->level, FLAGS); + nftnl_buf_u32(&b, type, log->flags, FLAGS); return nftnl_buf_done(&b); } -- cgit v1.2.3