]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Check virGetLastError return value for migration finish failure
authorJohn Ferlan <jferlan@redhat.com>
Tue, 1 Sep 2015 10:47:55 +0000 (06:47 -0400)
committerCole Robinson <crobinso@redhat.com>
Tue, 22 Sep 2015 00:18:04 +0000 (20:18 -0400)
commite5db3c4df26cbeb58650694c72093c7e08969907
tree23b3809be38881af60edcf0cf18f39e24822c14a
parent0206984abb8910a1b0887877aea5bca246eb1d83
qemu: Check virGetLastError return value for migration finish failure

Commit id '2e7cea243' added a check for an error from Finish instead
of 'unexpected error'; however, if for some reason there wasn't an
error, then virGetLastError could return NULL resulting in the
NULL pointer deref to err->domain.

(cherry picked from commit ea3c5f25eb94f08d2a54385362c7ad60c6b1854e)
src/libvirt-domain.c
src/qemu/qemu_migration.c