Commit 88d2d9e0 authored by aliguori's avatar aliguori

Fix possibly SEGV in tcp migration error case.

Spotted by hpoussin.
Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>



git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5526 c046a42c-6fe2-441c-8c8c-71466251a162
parent c1d36665
......@@ -283,7 +283,7 @@ MigrationState *tcp_start_outgoing_migration(const char *host_port,
dprintf("connect failed\n");
close(s->fd);
qemu_free(s);
s = NULL;
return NULL;
} else if (ret >= 0)
tcp_connect_migrate(s);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment