qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Alon Levy <alevy@redhat.com>
To: Yonit Halperin <yhalperi@redhat.com>
Cc: qemu-devel@nongnu.org, kraxel@redhat.com
Subject: Re: [Qemu-devel] [PATCH] monitor: fix client_migrate_info error handling
Date: Mon, 19 Mar 2012 09:49:35 +0100	[thread overview]
Message-ID: <20120319084935.GI6715@garlic.redhat.com> (raw)
In-Reply-To: <1332056559-8585-1-git-send-email-yhalperi@redhat.com>

On Sun, Mar 18, 2012 at 09:42:39AM +0200, Yonit Halperin wrote:
> Report QERR_INVALID_PARAMETER when port is missing. Otherwise
> QERR_UNDEFINED_ERROR will occur.
> 
> rhbz #795652
> 

Reviewed-by: Alon Levy <alevy@redhat.com>

> Signed-off-by: Yonit Halperin <yhalperi@redhat.com>
> ---
>  monitor.c |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
> 
> diff --git a/monitor.c b/monitor.c
> index d57e7bf..8f46031 100644
> --- a/monitor.c
> +++ b/monitor.c
> @@ -880,6 +880,11 @@ static int client_migrate_info(Monitor *mon, const QDict *qdict,
>              return -1;
>          }
>  
> +        if (port == -1 && tls_port == -1) {
> +            qerror_report(QERR_MISSING_PARAMETER, "port/tls-port");
> +            return -1;
> +        }
> +
>          ret = qemu_spice_migrate_info(hostname, port, tls_port, subject,
>                                        cb, opaque);
>          if (ret != 0) {
> -- 
> 1.7.7.6
> 
> 

  reply	other threads:[~2012-03-19  8:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-18  7:42 [Qemu-devel] [PATCH] monitor: fix client_migrate_info error handling Yonit Halperin
2012-03-19  8:49 ` Alon Levy [this message]
2012-03-19 11:57 ` Gerd Hoffmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120319084935.GI6715@garlic.redhat.com \
    --to=alevy@redhat.com \
    --cc=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=yhalperi@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).