aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Guryanov <dguryanov@parallels.com>2012-09-10 19:23:44 +0400
committerDaniel Veillard <veillard@redhat.com>2012-09-12 17:52:49 +0800
commit4cf4120b8204d1aeaed7392d84bdfd136cd4a6f8 (patch)
tree43aca82229ed935d231db9dcfa470c27b7aaab40 /src/parallels
parentparallels: fix parallelsDoCmdRun in case of command failure (diff)
downloadlibvirt-4cf4120b8204d1aeaed7392d84bdfd136cd4a6f8.tar.gz
libvirt-4cf4120b8204d1aeaed7392d84bdfd136cd4a6f8.tar.bz2
libvirt-4cf4120b8204d1aeaed7392d84bdfd136cd4a6f8.zip
parallels: fix parallelsDomainDefineXML for domains with VNC and autoport
virDomainDefParseString assigns 0 to port if autoport enabled. So fix code, which check different between old and new configurations.
Diffstat (limited to 'src/parallels')
-rw-r--r--src/parallels/parallels_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parallels/parallels_driver.c b/src/parallels/parallels_driver.c
index 06a75b353..2d6883f78 100644
--- a/src/parallels/parallels_driver.c
+++ b/src/parallels/parallels_driver.c
@@ -1185,7 +1185,7 @@ parallelsApplyGraphicsParams(virDomainGraphicsDefPtr *oldgraphics, int nold,
new = newgraphics[0];
if (old->data.vnc.port != new->data.vnc.port &&
- (old->data.vnc.port != 0 && new->data.vnc.port != -1)) {
+ (old->data.vnc.port != 0 && new->data.vnc.port != 0)) {
goto error;
} else if (old->data.vnc.autoport != new->data.vnc.autoport ||