mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
qemu: checkpoint: fix NULL dereference at create time
'cfg' is never initialized here, which causes a crash later in qemuCheckpointCreateFinalize Reviewed-by: Peter Krempa <pkrempa@redhat.com> Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
6f6a1763a1
commit
4ce7e743df
@ -464,7 +464,7 @@ qemuCheckpointCreateXML(virDomainPtr domain,
|
||||
bool update_current = true;
|
||||
bool redefine = flags & VIR_DOMAIN_CHECKPOINT_CREATE_REDEFINE;
|
||||
unsigned int parse_flags = 0;
|
||||
g_autoptr(virQEMUDriverConfig) cfg = NULL;
|
||||
g_autoptr(virQEMUDriverConfig) cfg = virQEMUDriverGetConfig(driver);
|
||||
g_autoptr(virDomainCheckpointDef) def = NULL;
|
||||
|
||||
virCheckFlags(VIR_DOMAIN_CHECKPOINT_CREATE_REDEFINE, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user