[Spice-devel] [PATCH spice-gtk] agent: fix mishandling of SPICE_MSG_MAIN_AGENT_TOKEN
Hans de Goede
hdegoede at redhat.com
Thu Jun 28 01:14:59 PDT 2012
Good one, ack.
Regards,
Hans
On 06/28/2012 10:06 AM, Yonit Halperin wrote:
> Add the given tokens instead of overriding the existing ones.
> ---
> gtk/channel-main.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/gtk/channel-main.c b/gtk/channel-main.c
> index fc6c97e..70861e6 100644
> --- a/gtk/channel-main.c
> +++ b/gtk/channel-main.c
> @@ -1464,7 +1464,7 @@ static void main_handle_agent_token(SpiceChannel *channel, SpiceMsgIn *in)
> SpiceMsgMainAgentTokens *tokens = spice_msg_in_parsed(in);
> SpiceMainChannelPrivate *c = SPICE_MAIN_CHANNEL(channel)->priv;
>
> - c->agent_tokens = tokens->num_tokens;
> + c->agent_tokens += tokens->num_tokens;
> agent_send_msg_queue(SPICE_MAIN_CHANNEL(channel));
> }
>
>
More information about the Spice-devel
mailing list