]> git.ipfire.org Git - thirdparty/libvirt.git/commit
domain: Fix crash if trying to live update disk <serial>
authorCole Robinson <crobinso@redhat.com>
Mon, 10 Aug 2015 23:01:43 +0000 (19:01 -0400)
committerCole Robinson <crobinso@redhat.com>
Tue, 11 Aug 2015 21:33:34 +0000 (17:33 -0400)
commitc7790408d7e16b1ad00a690433d9310f104994f7
tree591a732da6db7a86739fa0b31f77f631528f3b12
parent9bd16ad3b4dbe4bf8301c2b60fe77c36aa9b4f15
domain: Fix crash if trying to live update disk <serial>

If you pass <disk><serial> XML to UpdateDevice, and the original device
didn't have a <serial> block, libvirtd crashes trying to read the original
NULL serial string.

Use _NULLABLE string comparisons to avoid the crash. A couple other
properties needed the change too.
src/conf/domain_conf.c