Message ID | 20241128153239.16472-1-cgoettsche@seltendoof.de (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | libselinux/utils: use correct error handling | expand |
diff --git a/libselinux/utils/sefcontext_compile.c b/libselinux/utils/sefcontext_compile.c index 23d31274..5d7ab301 100644 --- a/libselinux/utils/sefcontext_compile.c +++ b/libselinux/utils/sefcontext_compile.c @@ -471,7 +471,7 @@ static int write_binary_file(const struct saved_data *data, const struct sidtab /* write context table */ rc = write_sidtab(bin_file, stab); if (rc) - return rc; + goto err; rc = write_spec_node(bin_file, do_write_precompregex, data->root, stab); if (rc)