diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2014-04-07 12:15:44 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2014-04-07 12:18:43 +0200 |
commit | dc491cfc14074064ed54a872b62cce6ca1330644 (patch) | |
tree | ab3beed9922114eb10e4318200345576017b694c /ui | |
parent | 466e6e9d13d56bbb6da1d2396d7d6347df483af0 (diff) |
spice: monitors_config: check pointer before dereferencing
Reported-by: Fabio Fantoni <fabio.fantoni@m2r.biz>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/spice-display.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/spice-display.c b/ui/spice-display.c index e28698c6b6..ce6b220f55 100644 --- a/ui/spice-display.c +++ b/ui/spice-display.c @@ -549,6 +549,10 @@ static int interface_client_monitors_config(QXLInstance *sin, QemuUIInfo info; int rc; + if (!mc) { + return 1; + } + /* * FIXME: multihead is tricky due to the way * spice has multihead implemented. |