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:
Daniel P. Berrange 2009-11-13 10:34:47 +00:00
parent da82b03fb0
commit 4be6e024c7

View File

@ -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 */