]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/auth.c
Make sure we call the channel's cleanup function.
[ppp.git] / pppd / auth.c
index 9f677c2f37330743a216e0f72e91cd19042bdbd7..a6f7d1cb09ad1348f504f6eb476c75bd60a6bde3 100644 (file)
@@ -68,7 +68,7 @@
  * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#define RCSID  "$Id: auth.c,v 1.106 2005/07/13 10:41:58 paulus Exp $"
+#define RCSID  "$Id: auth.c,v 1.108 2005/08/28 05:22:48 paulus Exp $"
 
 #include <stdio.h>
 #include <stddef.h>
@@ -652,6 +652,8 @@ link_terminated(unit)
        the_channel->disconnect();
        devfd = -1;
     }
+    if (the_channel->cleanup)
+       (*the_channel->cleanup)();
 
     if (doing_multilink && multilink_master) {
        if (!bundle_terminating)
@@ -2558,5 +2560,5 @@ auth_script(script)
     argv[5] = strspeed;
     argv[6] = NULL;
 
-    auth_script_pid = run_program(script, argv, 0, auth_script_done, NULL);
+    auth_script_pid = run_program(script, argv, 0, auth_script_done, NULL, 0);
 }