提交 4be6e024 编写于 作者: D Daniel P. Berrange

Fix cleanup when state driver init fails

* daemon/libvirtd.c: Fix incorrect goto label causing cleanup to
  be missed when state driver init fails
上级 da82b03f
...@@ -3153,7 +3153,7 @@ int main(int argc, char **argv) { ...@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册