mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-27 15:45:54 +00:00
server: fix segfault on client disconnect
..as a result of missing initialization of newly introduced pre_disconnect in main channel.
This commit is contained in:
parent
65f89aca2c
commit
7a079b452b
@ -997,8 +997,7 @@ uint64_t main_channel_client_get_bitrate_per_sec(MainChannelClient *mcc)
|
||||
MainChannel* main_channel_init(void)
|
||||
{
|
||||
RedChannel *channel;
|
||||
ChannelCbs channel_cbs;
|
||||
|
||||
ChannelCbs channel_cbs = {0,};
|
||||
|
||||
channel_cbs.config_socket = main_channel_config_socket;
|
||||
channel_cbs.on_disconnect = main_channel_client_on_disconnect;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user