summaryrefslogtreecommitdiff
path: root/pppd/auth.c
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2005-08-28 05:22:48 +0000
committerPaul Mackerras <paulus@samba.org>2005-08-28 05:22:48 +0000
commit620a979242257664405b8139611502c4e7a7e25e (patch)
treee6fd516ed9ca74f12125eb5e2d9f4a71eec2e17a /pppd/auth.c
parent78a9d7473d5830040e04d1cac880e942394d438a (diff)
downloadppp-620a979242257664405b8139611502c4e7a7e25e.tar.gz
Make sure we call the channel's cleanup function.
Without this we don't end up closing the pty slave.
Diffstat (limited to 'pppd/auth.c')
-rw-r--r--pppd/auth.c4
1 files changed, 3 insertions, 1 deletions
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 <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)