mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
virSecuritySELinuxTransactionCommit: Don't mask error
In 4674fc6afd6 I've implemented transactions for selinux driver. Well, now that I am working in this area I've noticed a subtle bug: @ret is initialized to 0 instead of -1. Facepalm. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Marc Hartmayer <mhartmay@linux.ibm.com>
This commit is contained in:
parent
167ce7117b
commit
8d8f6b4e88
@ -1091,7 +1091,7 @@ virSecuritySELinuxTransactionCommit(virSecurityManagerPtr mgr ATTRIBUTE_UNUSED,
|
||||
pid_t pid)
|
||||
{
|
||||
virSecuritySELinuxContextListPtr list;
|
||||
int ret = 0;
|
||||
int ret = -1;
|
||||
|
||||
list = virThreadLocalGet(&contextList);
|
||||
if (!list)
|
||||
|
Loading…
x
Reference in New Issue
Block a user