[Spice-devel] [PATCH spice-gtk 1/5] spice-channel: support SPICE_MSG_LIST
Yonit Halperin
yhalperi at redhat.com
Sun Jan 8 00:53:46 PST 2012
---
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 079028a..c4abd7b 100644
--- a/gtk/spice-channel.c
+++ b/gtk/spice-channel.c
@@ -1632,7 +1632,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;
@@ -1665,6 +1665,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