qmp: Don't let JSON errors jump the queue
authorMarkus Armbruster <armbru@redhat.com>
Tue, 3 Jul 2018 08:53:44 +0000 (10:53 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 3 Jul 2018 21:18:56 +0000 (23:18 +0200)
commit1cc37471525d03f963bc71d724f0dc9eab888fc1
treeae68bea009963f6bf9c39b97a16adddcdc698103
parent69240fe62d1ae02257bc0694a11c478b10378948
qmp: Don't let JSON errors jump the queue

handle_qmp_command() reports JSON syntax errors right away.  This is
wrong when OOB is enabled, because the errors can "jump the queue"
then.

The previous commit fixed the same bug for semantic errors, by
delaying the checking until dispatch.  We can't delay the checking, so
delay the reporting.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20180703085358.13941-19-armbru@redhat.com>
monitor.c