Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KtUpY-00078t-Ro for qemu-devel@nongnu.org; Fri, 24 Oct 2008 18:08:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KtUpY-00077l-3C for qemu-devel@nongnu.org; Fri, 24 Oct 2008 18:08:28 -0400 Received: from [199.232.76.173] (port=50362 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KtUpX-00077O-T0 for qemu-devel@nongnu.org; Fri, 24 Oct 2008 18:08:27 -0400 Received: from savannah.gnu.org ([199.232.41.3]:41443 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KtUpX-00074g-7E for qemu-devel@nongnu.org; Fri, 24 Oct 2008 18:08:27 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KtUpS-0004Mg-ST for qemu-devel@nongnu.org; Fri, 24 Oct 2008 22:08:22 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KtUpS-0004Mc-OD for qemu-devel@nongnu.org; Fri, 24 Oct 2008 22:08:22 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Fri, 24 Oct 2008 22:08:22 +0000 Subject: [Qemu-devel] [5526] Fix possibly SEGV in tcp migration error case. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 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);