提交 965ccdd1 编写于 作者: J Jiri Denemark

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.
上级 95fbc833
...@@ -685,8 +685,9 @@ static void qemuMonitorJSONHandleGraphics(qemuMonitorPtr mon, virJSONValuePtr da ...@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册