]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: fix libvirtd crash when reconnecting domains
authorJim Fehlig <jfehlig@suse.com>
Wed, 21 Aug 2013 17:05:18 +0000 (11:05 -0600)
committerJim Fehlig <jfehlig@suse.com>
Wed, 21 Aug 2013 17:05:18 +0000 (11:05 -0600)
commit4d1cf65a8ce6350ba4b2c6600da1d8b1b291e2b8
tree644fd52d5e4a6439d0f80e013c2e45f0abbead45
parente4ddcf09fb3efa4c5014e0c3259a05beb0f719a8
libxl: fix libvirtd crash when reconnecting domains

More fallout from commit d72ef888.  When reconnecting to running
domains, the libxl_ctx in libxlDomainObjPrivate was used before
initializing it, causing a segfault in libxl and consequently
crashing libvirtd.

Initialize the libxlDomainObjPrivate libxl_ctx in libxlReconnectDomain,
and while at it use this ctx in libxlReconnectDomain instead of the
driver-wide ctx.
src/libxl/libxl_driver.c