Skip to content

Commit

Permalink
libsemanage: handle cil_set_handle_unknown() failure
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
  • Loading branch information
cgzones authored and bachradsusi committed Nov 27, 2024
1 parent f1eb41d commit 419a76e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libsemanage/src/direct_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,9 @@ static int semanage_direct_commit(semanage_handle_t * sh)
cil_set_multiple_decls(cildb, sh->conf->multiple_decls);

if (sh->conf->handle_unknown != -1) {
cil_set_handle_unknown(cildb, sh->conf->handle_unknown);
retval = cil_set_handle_unknown(cildb, sh->conf->handle_unknown);
if (retval < 0)
goto cleanup;
}

retval = semanage_load_files(sh, cildb, mod_filenames, num_modinfos);
Expand Down

0 comments on commit 419a76e

Please sign in to comment.