]> xenbits.xensource.com Git - libvirt.git/commit
lxc: fix error value of lxcNodeGetSecurityModel
authorJán Tomko <jtomko@redhat.com>
Fri, 10 Dec 2021 15:30:46 +0000 (16:30 +0100)
committerJán Tomko <jtomko@redhat.com>
Mon, 13 Dec 2021 13:44:00 +0000 (14:44 +0100)
commitefe98ca98bb0febe6a8274175b7c5493c0d6c9f3
tree16996f97d2f82d0a1f98ba2bb5402e5b56e68acd
parent00c4dd794a5032345fba10570eed88f1b53721b2
lxc: fix error value of lxcNodeGetSecurityModel

When adding the ACL check and caps getter, we assumed that
the default return value is -1, not 0 as usual.

Fix the return value on error by assigning them explicitly.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/lxc/lxc_driver.c