Commit dc491cfc authored by Gerd Hoffmann's avatar Gerd Hoffmann
Browse files

spice: monitors_config: check pointer before dereferencing

parent 466e6e9d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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.