diff options
author | brian <brian@cvs.openbsd.org> | 1998-12-17 00:28:40 +0000 |
---|---|---|
committer | brian <brian@cvs.openbsd.org> | 1998-12-17 00:28:40 +0000 |
commit | 327a074ea6a95c4237f9b9ae8cadd4e376801bdd (patch) | |
tree | 9db66fdf86829ba46e5d1afe71a0695075e77e32 | |
parent | 11ec9ed92ee8355fa2e13ad1f58fb5d4db91daf7 (diff) |
Don't return stack-based data. This may have caused
server-side CHAP authentication problems in the past :-/
-rw-r--r-- | usr.sbin/ppp/ppp/auth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ppp/auth.c b/usr.sbin/ppp/ppp/auth.c index 6d65156bf25..fff9b873a97 100644 --- a/usr.sbin/ppp/ppp/auth.c +++ b/usr.sbin/ppp/ppp/auth.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: auth.c,v 1.1 1998/08/31 00:22:16 brian Exp $ + * $Id: auth.c,v 1.2 1998/12/17 00:28:39 brian Exp $ * * TODO: * o Implement check against with registered IP addresses. @@ -212,7 +212,7 @@ auth_GetSecret(struct bundle *bundle, const char *system, int len, FILE *fp; int n; char *vector[5]; - char buff[LINE_LEN]; + static char buff[LINE_LEN]; fp = OpenSecret(SECRETFILE); if (fp == NULL) |