In case mcc->priv->initial_channels_list_sent is false we didn't marshall any message so we should not call red_channel_client_begin_send_message. Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> --- server/main-channel-client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/main-channel-client.c b/server/main-channel-client.c index 07435073e..ebdef3f43 100644 --- a/server/main-channel-client.c +++ b/server/main-channel-client.c @@ -1052,8 +1052,9 @@ void main_channel_client_send_item(RedChannelClient *rcc, RedPipeItem *base) if (mcc->priv->initial_channels_list_sent) { main_channel_marshall_registered_channel(rcc, m, SPICE_UPCAST(RedRegisteredChannelPipeItem, base)); + break; } - break; + return; default: break; }; -- 2.14.3 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel