mirror of
https://github.com/libvirt/libvirt.git
synced 2026-09-03 20:53:04 -05:00
virSecuritySELinuxTransactionCommit: Don't mask error
In 4674fc6afd 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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user