Received: from eggs.gnu.org ([2001:4830:134:3::10]:52937) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zrglm-0003RN-Gu for qemu-devel@nongnu.org; Thu, 29 Oct 2015 02:33:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zrglj-0006jq-B8 for qemu-devel@nongnu.org; Thu, 29 Oct 2015 02:33:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58539) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zrglj-0006jN-5a for qemu-devel@nongnu.org; Thu, 29 Oct 2015 02:33:03 -0400 From: Markus Armbruster References: <1445509543-30679-1-git-send-email-berrange@redhat.com> Date: Thu, 29 Oct 2015 07:32:59 +0100 In-Reply-To: <1445509543-30679-1-git-send-email-berrange@redhat.com> (Daniel P. Berrange's message of "Thu, 22 Oct 2015 11:25:43 +0100") Message-ID: <87pozy89r8.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] qapi-schema: mark InetSocketAddress as mandatory again List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: Paolo Bonzini , qemu-devel@nongnu.org, Knut Omang "Daniel P. Berrange" writes: > Revert the qapi-schema.json change done in: > > commit 0983f5e6af76d5df8c6346cbdfff9d8305fb6da0 > Author: Daniel P. Berrange > Date: Tue Sep 1 14:46:50 2015 +0100 > > sockets: allow port to be NULL when listening on IP address > > Switching "port" from mandatory to optional causes the QAPI > code generator to add a 'has_port' field to the InetSocketAddress > struct. No code that created InetSocketAddress objects was updated > to set 'has_port = true', which caused the non-NULL port strings > to be silently dropped when copying InetSocketAddress objects. > > Reported-by: Knut Omang > Signed-off-by: Daniel P. Berrange I'll take this through my tree before even more people get bitten.