dccp_send: Fix com_off().
authorAndre Noll <maan@systemlinux.org>
Sun, 10 Oct 2010 19:37:03 +0000 (21:37 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 10 Oct 2010 19:37:03 +0000 (21:37 +0200)
This command made para_server sefgault due to the FEC client structure being
freed, but still used from vss.c. Fix this serious bug by first calling
dccp_shutdown_clients() which removes all FEC clients.

dccp_send.c

index 41aaf234da6ce89da2e25ce30871405f663cac38..a2ee0270733a3d47b2053173b9e74bbdbfb4eeff 100644 (file)
@@ -155,6 +155,7 @@ static int dccp_com_on(__a_unused struct sender_command_data *scd)
 
 static int dccp_com_off(__a_unused struct sender_command_data *scd)
 {
+       dccp_shutdown_clients();
        generic_com_off(dss);
        return 1;
 }