* [Qemu-devel] [5526] Fix possibly SEGV in tcp migration error case.
@ 2008-10-24 22:08 Anthony Liguori
0 siblings, 0 replies; only message in thread
From: Anthony Liguori @ 2008-10-24 22:08 UTC (permalink / raw)
To: qemu-devel
Revision: 5526
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5526
Author: aliguori
Date: 2008-10-24 22:08:22 +0000 (Fri, 24 Oct 2008)
Log Message:
-----------
Fix possibly SEGV in tcp migration error case.
Spotted by hpoussin.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Modified Paths:
--------------
trunk/migration-tcp.c
Modified: trunk/migration-tcp.c
===================================================================
--- trunk/migration-tcp.c 2008-10-24 21:55:17 UTC (rev 5525)
+++ trunk/migration-tcp.c 2008-10-24 22:08:22 UTC (rev 5526)
@@ -283,7 +283,7 @@
dprintf("connect failed\n");
close(s->fd);
qemu_free(s);
- s = NULL;
+ return NULL;
} else if (ret >= 0)
tcp_connect_migrate(s);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-10-24 22:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-24 22:08 [Qemu-devel] [5526] Fix possibly SEGV in tcp migration error case Anthony Liguori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).