]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
qemu: Do not require auth scheme in graphics events
authorJiri Denemark <jdenemar@redhat.com>
Tue, 4 Sep 2012 14:52:47 +0000 (16:52 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 5 Sep 2012 09:27:14 +0000 (11:27 +0200)
Only VNC_{{DIS,}CONNECTED,INITIALIZED} and SPICE_INITIALIZED events are
documented to support server/auth field and even there it is marked as
optional. Emit "" auth scheme in case QEMU didn't send it.

src/qemu/qemu_monitor_json.c

index 643431cb4dc7bff115a9ff402daa66a099842b52..bab6ca28b1bd0e0065384dd5471ef8c4ad5428b5 100644 (file)
@@ -685,8 +685,9 @@ static void qemuMonitorJSONHandleGraphics(qemuMonitorPtr mon, virJSONValuePtr da
 
     authScheme = virJSONValueObjectGetString(server, "auth");
     if (!authScheme) {
-        VIR_WARN("missing auth scheme in graphics event");
-        return;
+        /* not all events are required to contain auth scheme */
+        VIR_DEBUG("missing auth scheme in graphics event");
+        authScheme = "";
     }
 
     localFamily = virJSONValueObjectGetString(server, "family");