From f553a3f620c6c35b40fa7a977a57fafbada7596e Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Fri, 30 Jun 1995 19:53:04 +0000 Subject: [PATCH] Hang up the modem if the dial or login fails. This ensures that we will not hold the line open if the other end has a broken modem or server. This happens to me quite frequently with my ISP. --- usr.sbin/ppp/modem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/ppp/modem.c b/usr.sbin/ppp/modem.c index 0a251562c71d..e2de707da9ae 100644 --- a/usr.sbin/ppp/modem.c +++ b/usr.sbin/ppp/modem.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: modem.c,v 1.5 1995/04/16 13:38:39 amurai Exp $ + * $Id: modem.c,v 1.6 1995/05/30 03:50:51 rgrimes Exp $ * * TODO: */ @@ -727,6 +727,7 @@ DialModem() } else fprintf(stderr, "dial failed.\n"); + HangupModem(0); return(0); }