commit | 69ea651c40f7f08962d440a0486fd0212be74b73 | [log] [tgz] |
---|---|---|
author | Colin Ian King <colin.king@canonical.com> | Wed Aug 19 11:42:56 2020 +0100 |
committer | Paul Moore <paul@paul-moore.com> | Wed Aug 19 09:14:04 2020 -0400 |
tree | 1193a2717426983f4d656d49245a61c6e7a1d728 | |
parent | c7c556f1e81bb9e09656ed6650d0c44c84b7c016 [diff] |
selinux: fix allocation failure check on newpolicy->sidtab The allocation check of newpolicy->sidtab is null checking if newpolicy is null and not newpolicy->sidtab. Fix this. Addresses-Coverity: ("Logically dead code") Fixes: c7c556f1e81b ("selinux: refactor changing booleans") Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Stephen Smalley <stephen.smalley.work@gmail.com> Signed-off-by: Paul Moore <paul@paul-moore.com>