[Spice-commits] server/main_channel.c

Alon Levy alon at kemper.freedesktop.org
Sun Feb 26 05:07:41 PST 2012


 server/main_channel.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 7a079b452b026d6ce38f95dcc397fa64b059fffb
Author: Alon Levy <alevy at redhat.com>
Date:   Sun Feb 26 13:34:04 2012 +0100

    server: fix segfault on client disconnect
    
    ..as a result of missing initialization of newly introduced
    pre_disconnect in main channel.

diff --git a/server/main_channel.c b/server/main_channel.c
index 4d1f8ea..878f62d 100644
--- a/server/main_channel.c
+++ b/server/main_channel.c
@@ -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;


More information about the Spice-commits mailing list