[Spice-devel] [PATCH 1/2] Add log for invalid/expired tickets

Alon Levy alevy at redhat.com
Fri Mar 2 08:08:50 PST 2012


On Fri, Mar 02, 2012 at 04:52:42PM +0100, Christophe Fergeau wrote:
> Currently, when a ticket has already expired, or is invalid, there is
> no qemu log to tell what went wrong. This commit adds such a log.

ACK series.

> 
> Fixes rhbz#787669
> ---
>  server/reds.c |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
> 
> diff --git a/server/reds.c b/server/reds.c
> index 797d9d5..3a98456 100644
> --- a/server/reds.c
> +++ b/server/reds.c
> @@ -1860,6 +1860,11 @@ static void reds_handle_ticket(void *opaque)
>          }
>  
>          if (expired || strncmp(password, taTicket.password, SPICE_MAX_PASSWORD_LENGTH) != 0) {
> +            if (expired) {
> +                red_printf("Ticket has expired");
> +            } else {
> +                red_printf("Invalid password");
> +            }
>              reds_send_link_result(link, SPICE_LINK_ERR_PERMISSION_DENIED);
>              reds_link_free(link);
>              return;
> -- 
> 1.7.7.6
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel


More information about the Spice-devel mailing list