Don't return stack-based data. This may have caused

server-side CHAP authentication problems in the past :-/
This commit is contained in:
Brian Somers 1998-12-17 00:28:12 +00:00
parent 0378c40c5c
commit 2ff64793ad

View File

@ -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)