summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/auth.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-05-07 23:01:25 +0000
committerbrian <brian@FreeBSD.org>1997-05-07 23:01:25 +0000
commitc0df205f61114f6e2e8e0e81b742de41d87cfcca (patch)
tree47c107aa11ed1373a1bdb81a124d4c753409711b /usr.sbin/ppp/auth.c
parent605e9c6e8fbf82421ae4b271a7a7d47664f9062e (diff)
downloadFreeBSD-src-c0df205f61114f6e2e8e0e81b742de41d87cfcca.zip
FreeBSD-src-c0df205f61114f6e2e8e0e81b742de41d87cfcca.tar.gz
Allow up to 40 args in the chat script (was 20).
Ignore subsequent args rather than scribbling. PR: 1952 Submitted by: Mikael Hybsch <micke@free.dynas.se>
Diffstat (limited to 'usr.sbin/ppp/auth.c')
-rw-r--r--usr.sbin/ppp/auth.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ppp/auth.c b/usr.sbin/ppp/auth.c
index 3f25dbc..4ab98f2 100644
--- a/usr.sbin/ppp/auth.c
+++ b/usr.sbin/ppp/auth.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id$
+ * $Id: auth.c,v 1.10 1997/02/22 16:10:01 peter Exp $
*
* TODO:
* o Implement check against with registered IP addresses.
@@ -68,7 +68,7 @@ LocalAuthValidate( char *fname, char *system, char *key) {
continue;
buff[strlen(buff)-1] = 0;
bzero(vector, sizeof(vector));
- n = MakeArgs(buff, vector);
+ n = MakeArgs(buff, vector, VECSIZE(vector));
if (n < 1)
continue;
if (strcmp(vector[0], system) == 0) {
@@ -102,7 +102,7 @@ char *fname, *system, *key;
continue;
buff[strlen(buff)-1] = 0;
bzero(vector, sizeof(vector));
- n = MakeArgs(buff, vector);
+ n = MakeArgs(buff, vector, VECSIZE(vector));
if (n < 2)
continue;
if (strcmp(vector[0], system) == 0) {
@@ -143,7 +143,7 @@ int len, setaddr;
continue;
buff[strlen(buff)-1] = 0;
bzero(vector, sizeof(vector));
- n = MakeArgs(buff, vector);
+ n = MakeArgs(buff, vector, VECSIZE(vector));
if (n < 2)
continue;
if (strlen(vector[0]) == len && strncmp(vector[0], system, len) == 0) {
OpenPOWER on IntegriCloud