diff --git a/ui/spice-core.c b/ui/spice-core.c index 497670c4d5e25a617221af043d83e0676c8a3f2e..fe705c1ae2d2273e7231e99c58334b96f7c667f5 100644 --- a/ui/spice-core.c +++ b/ui/spice-core.c @@ -385,10 +385,7 @@ static SpiceChannelList *qmp_query_spice_channels(void) struct sockaddr *paddr; socklen_t plen; - if (!(item->info->flags & SPICE_CHANNEL_EVENT_FLAG_ADDR_EXT)) { - error_report("invalid channel event"); - return NULL; - } + assert(item->info->flags & SPICE_CHANNEL_EVENT_FLAG_ADDR_EXT); chan = g_malloc0(sizeof(*chan)); chan->value = g_malloc0(sizeof(*chan->value));