]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virDomainDeviceValidateAliasForHotplug: Use correct domain defintion
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 9 Mar 2018 07:31:44 +0000 (08:31 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 12 Mar 2018 12:27:24 +0000 (13:27 +0100)
commite5673ed44465edcfccdd906158136ad8dcb94b9b
treefa2aaac70c411b58d1f37542a83a630e0de04445
parentfc0f8563152184f49f15c251d6c595c1f88f4129
virDomainDeviceValidateAliasForHotplug: Use correct domain defintion

https://bugzilla.redhat.com/show_bug.cgi?id=1553075

For some weird reason this function is getting live and
persistent def for domain but then accesses vm->def and
vm->newDef directly. This is rather unsafe as we can be
accessing NULL pointer.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/domain_conf.c