]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - dccp_send.c
sender: Deplete ACLs on exit.
[paraslash.git] / dccp_send.c
index bd6c0257e432161c3d468505ec275638c70f010e..0b454e792a84d679ec322561a00d7b383b1ef5b3 100644 (file)
@@ -80,6 +80,12 @@ static void dccp_shutdown_clients(void)
                dccp_shutdown_client(sc);
 }
 
+static void dccp_shutdown(void)
+{
+       dccp_shutdown_clients();
+       generic_acl_deplete(&dss->acl);
+}
+
 /** * Obtain current MPS according to RFC 4340, sec. 14. */
 static int dccp_init_fec(struct sender_client *sc)
 {
@@ -238,7 +244,7 @@ static void dccp_send_init(void)
 const struct sender dccp_sender = {
        .name = "dccp",
        .init = dccp_send_init,
-       .shutdown = dccp_shutdown_clients,
+       .shutdown = dccp_shutdown,
        .pre_select = dccp_pre_select,
        .post_select = dccp_post_select,
        .shutdown_clients = dccp_shutdown_clients,