]> git.ipfire.org Git - thirdparty/libvirt.git/commit
security: Remove unnecessary checks for mgr == NULL
authorJohn Ferlan <jferlan@redhat.com>
Wed, 13 Feb 2013 13:11:39 +0000 (08:11 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Sat, 16 Feb 2013 12:44:35 +0000 (07:44 -0500)
commit676688b69bb5761b74bd1e5bb491562bd6d3dd26
treebd3c88edfb1e1425f1649136f6b9fad44a076571
parent1d816219eb04c045ed5e08f0707f470997875aeb
security: Remove unnecessary checks for mgr == NULL

Coverity found the DACGenLabel was checking for mgr == NULL after a
possible dereference; however, in order to get into the function the
virSecurityManagerGenLabel would have already dereferenced sec_managers[i]
so the check was unnecessary. Same check is made in SELinuxGenSecurityLabel.
src/security/security_dac.c
src/security/security_selinux.c