]> 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)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 4 Sep 2015 19:19:04 +0000 (15:19 -0400)
commitea3c5f25eb94f08d2a54385362c7ad60c6b1854e
tree0995e5930d8dea00f419a38d5ded5f2e52e5a875
parent53704bf24e8f89696d551b57f017c930ae9d5909
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.
src/libvirt-domain.c
src/qemu/qemu_migration.c