[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 1/2] Fix cleanup when state driver init fails



* daemon/libvirtd.c: Fix incorrect goto label causing cleanup to
  be missed when state driver init fails
---
 daemon/libvirtd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/daemon/libvirtd.c b/daemon/libvirtd.c
index ef07460..1caa4ce 100644
--- a/daemon/libvirtd.c
+++ b/daemon/libvirtd.c
@@ -3153,7 +3153,7 @@ int main(int argc, char **argv) {
      * seriously delay OS bootup process */
     if (virStateInitialize(server->privileged) < 0) {
         VIR_ERROR0("Driver state initialization failed");
-        goto error;
+        goto shutdown;
     }
 
     /* Start accepting new clients from network */
-- 
1.6.2.5


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]