From 14ef1515d0f39d71fedca5910e0a7836c24f31c4 Mon Sep 17 00:00:00 2001 From: Paul Moore Date: Wed, 31 Jul 2019 16:21:30 -0600 Subject: db: properly reset the attribute state in db_col_reset() Signed-off-by: Paul Moore (cherry picked from commit 3570b5cf9acbd1711d417e08ec608eea7b83d416) [TJH: removed the SPEC_ALLOW logic since it isn't in the 2.4.x release] Signed-off-by: Tom Hromatka Acked-by: Paul Moore --- src/db.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/db.c b/src/db.c index 64e0924..afb1c9f 100644 --- a/src/db.c +++ b/src/db.c @@ -1063,6 +1063,7 @@ int db_col_reset(struct db_filter_col *col, uint32_t def_action) col->attr.nnp_enable = 1; col->attr.tsync_enable = 0; col->attr.api_tskip = 0; + col->attr.log_enable = 0; /* set the state */ col->state = _DB_STA_VALID; -- cgit v1.2.1