From: Jiri Denemark Date: Tue, 4 Sep 2012 14:52:47 +0000 (+0200) Subject: qemu: Do not require auth scheme in graphics events X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=965ccdd1bddd20abb14446257be39f2392cd50f7;p=people%2Fliuw%2Flibxenctrl-split%2Flibvirt.git qemu: Do not require auth scheme in graphics events 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. --- diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c index 643431cb4..bab6ca28b 100644 --- a/src/qemu/qemu_monitor_json.c +++ b/src/qemu/qemu_monitor_json.c @@ -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");