From: Ian Campbell Subject: Re: [PATCH V2] Fix: 'xl vncviewer' accesses port 0 by any invalid domid Date: Fri, 18 Jul 2014 13:42:02 +0100 Message-ID: <1405687322.27855.1.camel@kazak.uk.xensource.com> References: <1405664284-4501-1-git-send-email-cyliu@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1405664284-4501-1-git-send-email-cyliu@suse.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Chunyan Liu Cc: stefano.stabellini@eu.citrix.com, ian.jackson@eu.citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Fri, 2014-07-18 at 14:18 +0800, Chunyan Liu wrote: > Currently, with command: > xl vncviewer invalid_domid > it always brings user to the domU using vncport 5900. > The invalid domid could be an non-existing one or Dom0. > It's better to report error in this case. > > Correct libxl_vncviewer_exec: > In existing code, when vncport is NULL, it still continues > and will show vncport 5900. So, with 'xl vncviewer 0' it also > wrongly shows domU using vncport 5900. Correct it to report error > if vncport is NULL. > > Signed-off-by: Chunyan Liu Acked + applied, thanks.