mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
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: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
This commit is contained in:
parent
96ca48451a
commit
851a751575
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user