fix spice-server segfault on migration

spice-server tries to use the migration information without checking
whenever this is available in the first place ...

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Gerd Hoffmann 2011-02-15 10:36:11 +01:00
parent 822fea8b32
commit aa827c5b99

View File

@ -3376,6 +3376,10 @@ static void reds_mig_switch(void)
SpiceMsgMainMigrationSwitchHost migrate;
RedsOutItem *item;
if (s == NULL) {
return;
}
red_printf("");
item = new_out_item(SPICE_MSG_MAIN_MIGRATE_SWITCH_HOST);