qemu: fix default spice password setting

Set spice password even if default VNC password hasn't been set.

https://bugzilla.redhat.com/show_bug.cgi?id=953720
This commit is contained in:
Ján Tomko 2013-04-19 07:00:44 +02:00
parent 78d7c3c569
commit 4327df7eee

View File

@ -2714,7 +2714,7 @@ qemuDomainChangeGraphicsPasswords(virQEMUDriverPtr driver,
int ret = -1; int ret = -1;
virQEMUDriverConfigPtr cfg = virQEMUDriverGetConfig(driver); virQEMUDriverConfigPtr cfg = virQEMUDriverGetConfig(driver);
if (!auth->passwd && !cfg->vncPassword) { if (!auth->passwd && !defaultPasswd) {
ret = 0; ret = 0;
goto cleanup; goto cleanup;
} }