]> git.ipfire.org Git - thirdparty/libvirt.git/commit
While doing on this patch series, I mistakenly added a bogus piece of
authorChris Lalancette <clalance@redhat.com>
Tue, 21 Oct 2008 17:15:53 +0000 (17:15 +0000)
committerChris Lalancette <clalance@redhat.com>
Tue, 21 Oct 2008 17:15:53 +0000 (17:15 +0000)
commitc83c3e9e5c539f32aa5da08f51c418b2c24e2e47
tree4d04b1c2d58168b43bafba7af8b5565e105dc691
parente98d8d79975630ae11a7311c11df28552878302f
While doing on this patch series, I mistakenly added a bogus piece of
storage XML to libvirtd, which was saved in /etc/libvirt/storage.  On subsequent
stop/start of libvirtd, because of another bug , an
error wasn't being set properly in an error path, so libvirtd was SEGV'ing in
storage_conf.c:virStoragePoolObjLoad when trying to dereference the NULL err
returned from virGetLastError().  Make this more robust against errors by always
doing "err ? err->message : NULL" in the printf.  I looked around the tree and
found a couple of other places that weren't guarded, so this patch fixes them as
well.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
ChangeLog
src/network_driver.c
src/qemu_driver.c
src/storage_conf.c
src/storage_driver.c