mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
qemu_process: Initialize domain definition for QMP query
When constructing QMP capabilities we allocate a dummy domain
object to pass to qemuMonitorOpen(). However, after 75dd595861
the function also expects domain definition to be allocated for
the domain object. The referenced commit already fixed
qemumonitortestutils.c but forgot to fix the other caller:
qemuProcessQMPConnectMonitor().
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
8958b47fab
commit
b626e652a6
@ -8654,7 +8654,8 @@ qemuProcessQMPConnectMonitor(qemuProcessQMPPtr proc)
|
||||
monConfig.data.nix.listen = false;
|
||||
|
||||
if (!(xmlopt = virDomainXMLOptionNew(NULL, NULL, NULL, NULL, NULL)) ||
|
||||
!(proc->vm = virDomainObjNew(xmlopt)))
|
||||
!(proc->vm = virDomainObjNew(xmlopt)) ||
|
||||
!(proc->vm->def = virDomainDefNew()))
|
||||
goto cleanup;
|
||||
|
||||
proc->vm->pid = proc->pid;
|
||||
|
Loading…
Reference in New Issue
Block a user