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.
This commit is contained in:
Jiri Denemark 2012-09-04 16:52:47 +02:00
parent 95fbc83387
commit 965ccdd1bd

View 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");