aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--migration-tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/migration-tcp.c b/migration-tcp.c
index 64b64d6b98..fe6288fc43 100644
--- a/migration-tcp.c
+++ b/migration-tcp.c
@@ -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);