summaryrefslogtreecommitdiffstats
path: root/server/inputs_channel.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2013-03-14 17:20:00 +0100
committerHans de Goede <hdegoede@redhat.com>2013-03-15 09:44:50 +0100
commit25f84a2d6e0a007a08f3907ce98d535d785b12d5 (patch)
treed7541aa5bdd186d8528b81a57cd13338e6fb2ddf /server/inputs_channel.c
parent8d44aa032892ea6643925fa7485d9af32853e127 (diff)
downloadspice-25f84a2d6e0a007a08f3907ce98d535d785b12d5.tar.gz
spice-25f84a2d6e0a007a08f3907ce98d535d785b12d5.tar.xz
spice-25f84a2d6e0a007a08f3907ce98d535d785b12d5.zip
inputs-channel: Don't send insecure keyb notify to in migrate client
This fixes spice-gtk printing message like these on migration: (remote-viewer:18402): GSpice-CRITICAL **: spice_channel_iterate_read: assertion `c->state != SPICE_CHANNEL_STATE_MIGRATING' failed Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'server/inputs_channel.c')
-rw-r--r--server/inputs_channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/inputs_channel.c b/server/inputs_channel.c
index c9c79be4..c968bb2b 100644
--- a/server/inputs_channel.c
+++ b/server/inputs_channel.c
@@ -522,7 +522,7 @@ static void inputs_connect(RedChannel *channel, RedClient *client,
spice_assert(g_inputs_channel);
spice_assert(channel == &g_inputs_channel->base);
- if (!stream->ssl) {
+ if (!stream->ssl && !red_client_during_migrate_at_target(client)) {
main_channel_client_push_notify(red_client_get_main(client),
"keyboard channel is insecure");
}