mirror of https://gitee.com/openkylin/libvirt.git
vz: fixed null-pointer dereference in applying graphic params
Signed-off-by: Olga Krishtal <okrishtal@virtuozzo.com>
This commit is contained in:
parent
eb2fe4eb4a
commit
799b5aa59e
|
@ -2768,6 +2768,7 @@ static int prlsdkApplyGraphicsParams(PRL_HANDLE sdkdom,
|
|||
if (!gr) {
|
||||
pret = PrlVmCfg_SetVNCMode(sdkdom, PRD_DISABLED);
|
||||
prlsdkCheckRetExit(pret, -1);
|
||||
return 0;
|
||||
}
|
||||
|
||||
pret = PrlVmCfg_SetVNCPassword(sdkdom, gr->data.vnc.auth.passwd ? : "");
|
||||
|
|
Loading…
Reference in New Issue