Re: [PATCH] vz: fixed null-pointer dereference in applying graphic params

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



29-Jun-16 20:23, Olga Krishtal пишет:

Signed-off-by: Olga Krishtal <okrishtal@xxxxxxxxxxxxx>
---
  src/vz/vz_sdk.c | 1 +
  1 file changed, 1 insertion(+)

diff --git a/src/vz/vz_sdk.c b/src/vz/vz_sdk.c
index f4c2b3b..848bfb9 100644
--- a/src/vz/vz_sdk.c
+++ b/src/vz/vz_sdk.c
@@ -2790,6 +2790,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 ? : "");

ACK and pushed now. Thanks!

Maxim

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]