aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-09-20 14:58:12 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-09-21 13:43:32 +0100
commitdb2aff6adaa405f0bc998c7bd3158fe43805ee60 (patch)
treefb56ead97b00f063d6c36bd1a276184f89e4030a /tests/capabilityschematest
parentqemu: Fix failure path in disk hotplug (diff)
downloadlibvirt-db2aff6adaa405f0bc998c7bd3158fe43805ee60.tar.gz
libvirt-db2aff6adaa405f0bc998c7bd3158fe43805ee60.tar.bz2
libvirt-db2aff6adaa405f0bc998c7bd3158fe43805ee60.zip
Make virSecurityDeviceLabelDefParseXML into generic device <seclabel> parser.
This is just code motion, allowing us to reuse the same function to parse the <seclabel> from character devices too. However it also fixes a possible segfault in the original code if VIR_ALLOC_N returns an error and the cleanup code (at the error: label) tries to iterate over the unallocated array (thanks Michal Privoznik for spotting this). Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
Diffstat (limited to 'tests/capabilityschematest')
0 files changed, 0 insertions, 0 deletions