diff options
author | ache <ache@FreeBSD.org> | 1996-03-08 13:22:23 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1996-03-08 13:22:23 +0000 |
commit | 53c7b9f85354394ae5d8d9f88d5cffbb319a9e3b (patch) | |
tree | 13faf37531eda1356481a2b8bad3cf8a1776d0ae /usr.sbin/ppp/chat.c | |
parent | 8d299fcc23c4b89811dcad056e9db5cbaaaa5ed8 (diff) | |
download | FreeBSD-src-53c7b9f85354394ae5d8d9f88d5cffbb319a9e3b.zip FreeBSD-src-53c7b9f85354394ae5d8d9f88d5cffbb319a9e3b.tar.gz |
Prevent dial cycling on the last phone from the list, make phone list copy
Diffstat (limited to 'usr.sbin/ppp/chat.c')
-rw-r--r-- | usr.sbin/ppp/chat.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/ppp/chat.c b/usr.sbin/ppp/chat.c index ca7a8b1..f31b441 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.6 1996/03/08 09:03:03 ache Exp $ + * $Id: chat.c,v 1.7 1996/03/08 12:34:37 ache Exp $ * * TODO: * o Support more UUCP compatible control sequences. @@ -153,8 +153,10 @@ int sendmode; result += strlen(VarAuthKey); break; case 'T': - if (VarNextPhone == NULL) - VarNextPhone = VarPhoneList; + if (VarNextPhone == NULL) { + strcpy(VarPhoneCopy, VarPhoneList); + VarNextPhone = VarPhoneCopy; + } phone = strsep(&VarNextPhone, ":"); bcopy(phone, result, strlen(phone)); result += strlen(phone); |