提交 851a7515 编写于 作者: N Nikolay Shirokovskiy 提交者: Maxim Nestratov

vz: always pass graphics address to sdk

We need this because apply graphics functions is used on
update too. Also in case of NULL address resolve it to default
instead of error.
Signed-off-by: NNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
上级 96ca4845
......@@ -2772,12 +2772,10 @@ static int prlsdkApplyGraphicsParams(PRL_HANDLE sdkdom,
prlsdkCheckRetGoto(pret, cleanup);
}
if ((glisten = virDomainGraphicsGetListen(gr, 0))) {
if (!glisten->address)
goto cleanup;
pret = PrlVmCfg_SetVNCHostName(sdkdom, glisten->address);
prlsdkCheckRetGoto(pret, cleanup);
}
glisten = virDomainGraphicsGetListen(gr, 0);
pret = PrlVmCfg_SetVNCHostName(sdkdom, glisten && glisten->address ?
glisten->address : "");
prlsdkCheckRetGoto(pret, cleanup);
ret = 0;
cleanup:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册