mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user