mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
Fix daemon hook script initialization
* daemon/libvirtd.c: we should error out only if virHookInitialize() return value is negative
This commit is contained in:
parent
8bf6799b09
commit
0ec5cd0704
@ -3150,7 +3150,7 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
|
||||
/* setup the hooks if any */
|
||||
if (virHookInitialize()) {
|
||||
if (virHookInitialize() < 0) {
|
||||
ret = VIR_DAEMON_ERR_HOOKS;
|
||||
goto error;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user