[Spice-commits] gtk/channel-main.c

Yonit Halperin yhalperi at kemper.freedesktop.org
Thu Jun 28 01:35:28 PDT 2012


 gtk/channel-main.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7e8380414fc837b7b0fcc37df654350fe5be9734
Author: Yonit Halperin <yhalperi at redhat.com>
Date:   Thu Jun 28 11:02:31 2012 +0300

    agent: fix mishandling of SPICE_MSG_MAIN_AGENT_TOKEN
    
    Add the given tokens instead of overriding the existing ones.

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-commits mailing list