Commit 88d2d9e09826c26060b063153db9bfefa5704f48

Authored by aliguori
1 parent c1d36665

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
Showing 1 changed file with 1 additions and 1 deletions
migration-tcp.c
... ... @@ -283,7 +283,7 @@ MigrationState *tcp_start_outgoing_migration(const char *host_port,
283 283 dprintf("connect failed\n");
284 284 close(s->fd);
285 285 qemu_free(s);
286   - s = NULL;
  286 + return NULL;
287 287 } else if (ret >= 0)
288 288 tcp_connect_migrate(s);
289 289  
... ...