From 620a979242257664405b8139611502c4e7a7e25e Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Sun, 28 Aug 2005 05:22:48 +0000 Subject: [PATCH] Make sure we call the channel's cleanup function. Without this we don't end up closing the pty slave. --- pppd/auth.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pppd/auth.c b/pppd/auth.c index 41ef546..a6f7d1c 100644 --- a/pppd/auth.c +++ b/pppd/auth.c @@ -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 #include @@ -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) -- 2.39.2