mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-01 17:35:17 +00:00
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:
parent
95fbc83387
commit
965ccdd1bd
@ -685,8 +685,9 @@ static void qemuMonitorJSONHandleGraphics(qemuMonitorPtr mon, virJSONValuePtr da
|
|||||||
|
|
||||||
authScheme = virJSONValueObjectGetString(server, "auth");
|
authScheme = virJSONValueObjectGetString(server, "auth");
|
||||||
if (!authScheme) {
|
if (!authScheme) {
|
||||||
VIR_WARN("missing auth scheme in graphics event");
|
/* not all events are required to contain auth scheme */
|
||||||
return;
|
VIR_DEBUG("missing auth scheme in graphics event");
|
||||||
|
authScheme = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
localFamily = virJSONValueObjectGetString(server, "family");
|
localFamily = virJSONValueObjectGetString(server, "family");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user