mirror of https://github.com/xemu-project/xemu.git
Fix possibly SEGV in tcp migration error case.
Spotted by hpoussin. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5526 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
c1d3666532
commit
88d2d9e098
|
@ -283,7 +283,7 @@ MigrationState *tcp_start_outgoing_migration(const char *host_port,
|
||||||
dprintf("connect failed\n");
|
dprintf("connect failed\n");
|
||||||
close(s->fd);
|
close(s->fd);
|
||||||
qemu_free(s);
|
qemu_free(s);
|
||||||
s = NULL;
|
return NULL;
|
||||||
} else if (ret >= 0)
|
} else if (ret >= 0)
|
||||||
tcp_connect_migrate(s);
|
tcp_connect_migrate(s);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue