From 7b1227b19e0edac8a554eee9e8546813ce13367e Mon Sep 17 00:00:00 2001 From: James Carter Date: Tue, 26 May 2020 14:50:57 -0400 Subject: [PATCH] libsepol/cil: Initialize the multiple_decls field of the cil db Initialize the multiple_decls field when intializing the structure cil_db. Fixes: fafe4c212bf6c32c ("libsepol: cil: Add ability to redeclare types[attributes]") Reported-by: Topi Miettinen Signed-off-by: James Carter --- libsepol/cil/src/cil.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libsepol/cil/src/cil.c b/libsepol/cil/src/cil.c index 4a77aa9c..a3c6a293 100644 --- a/libsepol/cil/src/cil.c +++ b/libsepol/cil/src/cil.c @@ -459,6 +459,7 @@ void cil_db_init(struct cil_db **db) (*db)->preserve_tunables = CIL_FALSE; (*db)->handle_unknown = -1; (*db)->mls = -1; + (*db)->multiple_decls = CIL_FALSE; (*db)->target_platform = SEPOL_TARGET_SELINUX; (*db)->policy_version = POLICYDB_VERSION_MAX; }