From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:46364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THtP5-0001Y9-Nz for qemu-devel@nongnu.org; Sat, 29 Sep 2012 05:32:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1THtP4-0005eL-G0 for qemu-devel@nongnu.org; Sat, 29 Sep 2012 05:32:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:21864) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THtP4-0005eF-7u for qemu-devel@nongnu.org; Sat, 29 Sep 2012 05:32:06 -0400 From: Amos Kong Date: Sat, 29 Sep 2012 17:32:31 +0800 Message-Id: <1348911151-7744-1-git-send-email-akong@redhat.com> Subject: [Qemu-devel] [PATCH] trivial fix of inet_listen() parameter List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: stefanha@gmail.com, aliguori@us.ibm.com, Amos Kong , mdroth@linux.vnet.ibm.com .. int inet_listen(const char *str, char *ostr, int olen, .. int socktype, int port_offset, Error **errp) Here 'ostr' is NULL, so change 'olen' to zero. Signed-off-by: Amos Kong --- migration-tcp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/migration-tcp.c b/migration-tcp.c index a15c2b8..34d6d89 100644 --- a/migration-tcp.c +++ b/migration-tcp.c @@ -123,7 +123,7 @@ int tcp_start_incoming_migration(const char *host_port, Error **errp) { int s; - s = inet_listen(host_port, NULL, 256, SOCK_STREAM, 0, errp); + s = inet_listen(host_port, NULL, 0, SOCK_STREAM, 0, errp); if (s < 0) { return -1; -- 1.7.1