提交 556808ec 编写于 作者: M Martin Kletzander

qemu: Don't miss errors when changing graphics passwords

Commit 23e8b5d8 forgot to check the
return value for all calls to qemuDomainChangeGraphicsPasswords().
上级 350fd95f
...@@ -2055,10 +2055,10 @@ qemuProcessInitPasswords(virConnectPtr conn, ...@@ -2055,10 +2055,10 @@ qemuProcessInitPasswords(virConnectPtr conn,
&graphics->data.spice.auth, &graphics->data.spice.auth,
cfg->spicePassword); cfg->spicePassword);
} }
}
if (ret < 0) if (ret < 0)
goto cleanup; goto cleanup;
}
if (virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_DEVICE)) { if (virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_DEVICE)) {
for (i = 0; i < vm->def->ndisks; i++) { for (i = 0; i < vm->def->ndisks; i++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册