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
(cherry picked from commit 4327df7eee)
This commit is contained in:
Ján Tomko 2013-04-19 07:00:44 +02:00
parent 7d6abdec6d
commit f048d08408

View File

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