Make sure we call the channel's cleanup function.
authorPaul Mackerras <paulus@samba.org>
Sun, 28 Aug 2005 05:22:48 +0000 (05:22 +0000)
committerPaul Mackerras <paulus@samba.org>
Sun, 28 Aug 2005 05:22:48 +0000 (05:22 +0000)
Without this we don't end up closing the pty slave.

pppd/auth.c

index 41ef5463c5928d84f2ea7bc225d103aa61a15873..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.107 2005/08/25 23:59:34 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)