[Spice-devel] [PATCH spice-gtk 2/3] spice-channel: support SPICE_MSG_LIST

Yonit Halperin yhalperi at redhat.com
Wed Dec 28 09:15:43 PST 2011


---
 gtk/spice-channel.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/gtk/spice-channel.c b/gtk/spice-channel.c
index 69a0571..2a0e371 100644
--- a/gtk/spice-channel.c
+++ b/gtk/spice-channel.c
@@ -1617,7 +1617,7 @@ void spice_channel_recv_msg(SpiceChannel *channel,
             return;
     }
 
-    if (in->header.sub_list) {
+    if (in->header.type == SPICE_MSG_LIST || in->header.sub_list) {
         SpiceSubMessageList *sub_list;
         SpiceSubMessage *sub;
         SpiceMsgIn *sub_in;
@@ -1650,6 +1650,10 @@ void spice_channel_recv_msg(SpiceChannel *channel,
         }
     }
 
+    if (in->header.type == SPICE_MSG_LIST) {
+        goto end;
+    }
+
     /* parse message */
     in->parsed = c->parser(in->data, in->data + in->dpos, in->header.type,
                            c->peer_hdr.minor_version, &in->psize, &in->pfree);
-- 
1.7.6.4



More information about the Spice-devel mailing list