[Spice-devel] [PATCH spice-server 7/8] red-channel-client: Remove useless check
Frediano Ziglio
fziglio at redhat.com
Mon Oct 7 10:39:05 UTC 2019
Message is checked by generated message parser.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
server/red-channel-client.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/server/red-channel-client.c b/server/red-channel-client.c
index 35eafa7a..832b4175 100644
--- a/server/red-channel-client.c
+++ b/server/red-channel-client.c
@@ -1464,10 +1464,6 @@ bool red_channel_client_handle_message(RedChannelClient *rcc, uint16_t type,
{
switch (type) {
case SPICE_MSGC_ACK_SYNC:
- if (size != sizeof(uint32_t)) {
- red_channel_warning(red_channel_client_get_channel(rcc), "bad message size");
- return FALSE;
- }
rcc->priv->ack_data.client_generation = *(uint32_t *)(message);
break;
case SPICE_MSGC_ACK:
--
2.21.0
More information about the Spice-devel
mailing list