qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [5526] Fix possibly SEGV in tcp migration error case.


From: Anthony Liguori
Subject: [Qemu-devel] [5526] Fix possibly SEGV in tcp migration error case.
Date: Fri, 24 Oct 2008 22:08:22 +0000

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 <address@hidden>

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);
 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]