projects
/
qemu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix possibly SEGV in tcp migration error case.
[qemu]
/
migration-tcp.c
diff --git
a/migration-tcp.c
b/migration-tcp.c
index
64b64d6
..
fe6288f
100644
(file)
--- 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);