]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: check defaultMode for spice graphics independently
authorPavel Hrdina <phrdina@redhat.com>
Fri, 27 Feb 2015 14:07:03 +0000 (15:07 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 3 Mar 2015 10:42:33 +0000 (11:42 +0100)
commita16e5f0a91ee8654e37f1435d82ffb83aa617246
tree70da2b9485340aa80e318b12da90e88a79ab87b9
parente4983952b4373f6a741245629b03ff25ad220d35
qemu: check defaultMode for spice graphics independently

Instead of checking defaultMode for every channel that has no mode
configured, test it only once outside of channel loop.  This fixes a bug
that in case all possible channels are fore example set to insecure, but
defaultMode is set to secure, we wouldn't auto-generate TLS port.  This
results in failure while starting a guest.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1143832

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_process.c