提交 4cf4120b 编写于 作者: D Dmitry Guryanov 提交者: Daniel Veillard

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.
上级 748b6d8e
......@@ -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 ||
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册