mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15: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");
|
||||
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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user