libsepol/cil: ibendportcon fails to resolve in CIL policy

Fix named ibendportcon context not resolving correctly.

Signed-off-by: Richard Haines <richard_c_haines@btinternet.com>
This commit is contained in:
Richard Haines 2017-06-12 09:31:10 +01:00 committed by James Carter
parent f6f4876dfc
commit c8e135ba22

View file

@ -4698,7 +4698,7 @@ int cil_gen_ibendportcon(__attribute__((unused)) struct cil_db *db, struct cil_t
}
if (!parse_current->next->next->next->cl_head) {
ibendportcon->context_str = parse_current->next->next->data;
ibendportcon->context_str = parse_current->next->next->next->data;
} else {
cil_context_init(&ibendportcon->context);