diff options
author | dfr <dfr@FreeBSD.org> | 1995-06-30 19:53:04 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1995-06-30 19:53:04 +0000 |
commit | abfd59ab81c4c9192c3b07735c6b935d5df7eb9f (patch) | |
tree | b0aeba4eb454dc0f07e19b7ab4d0068746e36a8f | |
parent | 84a86fc1d216bcb162401b074c7e4dbf9d41f1bb (diff) | |
download | FreeBSD-src-abfd59ab81c4c9192c3b07735c6b935d5df7eb9f.zip FreeBSD-src-abfd59ab81c4c9192c3b07735c6b935d5df7eb9f.tar.gz |
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.
-rw-r--r-- | usr.sbin/ppp/modem.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ppp/modem.c b/usr.sbin/ppp/modem.c index 0a25156..e2de707 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); } |