summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/chat.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-07-14 01:41:35 +0000
committerbrian <brian@FreeBSD.org>1997-07-14 01:41:35 +0000
commite3faa34d53e70df949da831b848a9c199c0d4cde (patch)
tree6b1eb482a86ab87deaa738693a3f5365440256be /usr.sbin/ppp/chat.c
parent9ba2a5db74b2ac32478082f8ff0c19b6a328fe2f (diff)
downloadFreeBSD-src-e3faa34d53e70df949da831b848a9c199c0d4cde.zip
FreeBSD-src-e3faa34d53e70df949da831b848a9c199c0d4cde.tar.gz
Allow a "hangup" capability.
You can now "ATZ" your modem when it's closed. Submitted by: peter@citylink.dinoex.sub.org (Peter Much)
Diffstat (limited to 'usr.sbin/ppp/chat.c')
-rw-r--r--usr.sbin/ppp/chat.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/ppp/chat.c b/usr.sbin/ppp/chat.c
index e1e14e7..ff5922f 100644
--- a/usr.sbin/ppp/chat.c
+++ b/usr.sbin/ppp/chat.c
@@ -18,7 +18,7 @@
* Columbus, OH 43221
* (614)451-1883
*
- * $Id: chat.c,v 1.27 1997/06/23 23:10:05 brian Exp $
+ * $Id: chat.c,v 1.28 1997/07/01 21:31:21 brian Exp $
*
* TODO:
* o Support more UUCP compatible control sequences.
@@ -569,6 +569,9 @@ DoChat(char *script)
char **argv;
int argc, n, state;
+ if (!script || !*script)
+ return MATCH;
+
/* While we're chatting, we want an INT to fail us */
if (setjmp(ChatEnv)) {
signal(SIGINT, oint);
OpenPOWER on IntegriCloud