diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2012-08-09 11:30:53 +0300 |
---|---|---|
committer | Yonit Halperin <yhalperi@redhat.com> | 2012-08-14 16:15:37 +0300 |
commit | 3c685bb917e5bba6543d372bc2e760df2ef70450 (patch) | |
tree | 5d28f1bfd5e7a21797b98468324f8c9d96add5d7 | |
parent | 82c367bdd543a01fa2f7f39113f51272f4f7a9e0 (diff) |
channel-base: remove bad check of SpiceMsgWaitForChannels validity
SpiceMsgWaitForChannels is not packed. Comparing the original
msg size to SpiceMsgWaitForChannels is wrong.
-rw-r--r-- | gtk/channel-base.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gtk/channel-base.c b/gtk/channel-base.c index cc4d242..2968f42 100644 --- a/gtk/channel-base.c +++ b/gtk/channel-base.c @@ -120,9 +120,6 @@ void spice_channel_handle_wait_for_channels(SpiceChannel *channel, SpiceMsgIn *i SpiceMsgWaitForChannels *wfc = spice_msg_in_parsed(in); int i; - g_return_if_fail(spice_header_get_msg_size(in->header, channel->priv->use_mini_header) >= - sizeof(*wfc) + wfc->wait_count * sizeof(wfc->wait_list[0])); - for (i = 0; i < wfc->wait_count; ++i) { WaitForChannelData data = { .wait = wfc->wait_list + i, |