diff options
author | brian <brian@FreeBSD.org> | 1998-12-17 00:28:12 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-12-17 00:28:12 +0000 |
commit | cffecce33c689788a8bda9740aa0593d4e41ee5a (patch) | |
tree | dd0712c1c9bcc5f949f64fda4d12794ab96d734e | |
parent | dc4a57e23b4d77723f188305a262ca30d0aedda5 (diff) | |
download | FreeBSD-src-cffecce33c689788a8bda9740aa0593d4e41ee5a.zip FreeBSD-src-cffecce33c689788a8bda9740aa0593d4e41ee5a.tar.gz |
Don't return stack-based data. This may have caused
server-side CHAP authentication problems in the past :-/
-rw-r--r-- | usr.sbin/ppp/auth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/auth.c b/usr.sbin/ppp/auth.c index be406d0..8d47984 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: auth.c,v 1.32 1998/08/07 18:42:47 brian Exp $ + * $Id: auth.c,v 1.33 1998/08/26 17:39:36 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) |