]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fix crash in migration of graphics-less guests.
authorViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Thu, 16 May 2013 12:41:29 +0000 (14:41 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 16 May 2013 13:48:34 +0000 (15:48 +0200)
commit9684bb11fd3832582308d0bcdb649041fd6584e2
tree86f2ec1513ff9fb8527be55bccd2882cb2306975
parente13e548fc2a9b3f56f4e2d0a55686bcdb94102de
qemu: Fix crash in migration of graphics-less guests.

Commit 7f15ebc7a2b599ab10dbc15bca6f823591213e67 introduced a bug
happening when guests without a <graphics> element are migrated.
The initialization of listenAddress happens unconditionally
from the cookie even if the cookie->graphics pointer was NULL.
Moved the initialization to where it is safe.

Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
src/qemu/qemu_migration.c