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: c7c556f1 ("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>
Loading
Please sign in to comment