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

Hans de Goede jwrdegoede at kemper.freedesktop.org
Mon Sep 30 00:21:52 PDT 2013


 gtk/spice-channel.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit fb469ef815d7e8396aee49ad4ca4e5d4f882ee26
Author: Hans de Goede <hdegoede at redhat.com>
Date:   Sun Sep 29 22:59:32 2013 +0200

    spice-channel: Fix usbredir being broken since commit 159c6ebf
    
    The usbredir channel uses spice_msg_in_raw to get its data, which uses
    in->dpos to determine the msg size and that was no longer being set for
    non sub-messages.
    
    https://bugs.freedesktop.org/show_bug.cgi?id=69935
    
    Signed-off-by: Hans de Goede <hdegoede at redhat.com>

diff --git a/gtk/spice-channel.c b/gtk/spice-channel.c
index b01b820..150636e 100644
--- a/gtk/spice-channel.c
+++ b/gtk/spice-channel.c
@@ -1790,6 +1790,7 @@ void spice_channel_recv_msg(SpiceChannel *channel,
     spice_channel_read(channel, in->data, msg_size);
     if (c->has_error)
         goto end;
+    in->dpos = msg_size;
 
     msg_type = spice_header_get_msg_type(in->header, c->use_mini_header);
     sub_list_offset = spice_header_get_msg_sub_list(in->header, c->use_mini_header);


More information about the Spice-commits mailing list