mirror of https://gitee.com/openkylin/libvirt.git
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.
This commit is contained in:
parent
748b6d8e90
commit
4cf4120b82
|
@ -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 ||
|
||||
|
|
Loading…
Reference in New Issue