mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
qemu: Fix retval if ACL check fails in qemuNodeGetSecurityModel
While previously we returned 0 this is not correct. We have to return a negative value to indicate error. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
b955fca629
commit
97bc56d75f
@ -5935,7 +5935,7 @@ static int qemuNodeGetSecurityModel(virConnectPtr conn,
|
||||
memset(secmodel, 0, sizeof(*secmodel));
|
||||
|
||||
if (virNodeGetSecurityModelEnsureACL(conn) < 0)
|
||||
return 0;
|
||||
return -1;
|
||||
|
||||
/* We treat no driver as success, but simply return no data in *secmodel */
|
||||
if (!(caps = virQEMUDriverGetCapabilities(driver, false)) ||
|
||||
|
Loading…
Reference in New Issue
Block a user