mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
Fix cleanup when state driver init fails
* daemon/libvirtd.c: Fix incorrect goto label causing cleanup to be missed when state driver init fails
This commit is contained in:
parent
da82b03fb0
commit
4be6e024c7
@ -3153,7 +3153,7 @@ int main(int argc, char **argv) {
|
|||||||
* seriously delay OS bootup process */
|
* seriously delay OS bootup process */
|
||||||
if (virStateInitialize(server->privileged) < 0) {
|
if (virStateInitialize(server->privileged) < 0) {
|
||||||
VIR_ERROR0("Driver state initialization failed");
|
VIR_ERROR0("Driver state initialization failed");
|
||||||
goto error;
|
goto shutdown;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Start accepting new clients from network */
|
/* Start accepting new clients from network */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user