mirror of
https://github.com/libvirt/libvirt.git
synced 2026-09-03 20:53:04 -05:00
vz: fixed null-pointer dereference in applying graphic params
Signed-off-by: Olga Krishtal <okrishtal@virtuozzo.com>
This commit is contained in:
committed by
Maxim Nestratov
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 ? : "");
|
||||
|
||||
Reference in New Issue
Block a user