diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index 4fe343c02c0f863685c55c9ea10f6f3a1317511c..df0ac722a8b9a3d89aeb569a57a9478b0efaa71a 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -2055,10 +2055,10 @@ qemuProcessInitPasswords(virConnectPtr conn, &graphics->data.spice.auth, cfg->spicePassword); } - } - if (ret < 0) - goto cleanup; + if (ret < 0) + goto cleanup; + } if (virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_DEVICE)) { for (i = 0; i < vm->def->ndisks; i++) {