From: Paul Mackerras Date: Sun, 28 Aug 2005 05:22:48 +0000 (+0000) Subject: Make sure we call the channel's cleanup function. X-Git-Tag: ppp-2.4.7~130 X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=620a979242257664405b8139611502c4e7a7e25e;p=ppp.git Make sure we call the channel's cleanup function. Without this we don't end up closing the pty slave. --- 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)