diff options
author | ray <ray@openbsd.org> | 2006-09-20 21:28:09 +0000 |
---|---|---|
committer | ray <ray@openbsd.org> | 2006-09-20 21:28:09 +0000 |
commit | 2fcd0c260e2c54a859a2e41b2feaa755dbab3a20 (patch) | |
tree | eb828b56dcdc03a3329ff0e05fde711d1112964e /libexec/login_radius | |
parent | Recommit memory leak fix. (diff) | |
download | wireguard-openbsd-2fcd0c260e2c54a859a2e41b2feaa755dbab3a20.tar.xz wireguard-openbsd-2fcd0c260e2c54a859a2e41b2feaa755dbab3a20.zip |
Recommit non-static array fix.
Diffstat (limited to 'libexec/login_radius')
-rw-r--r-- | libexec/login_radius/raddauth.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/login_radius/raddauth.c b/libexec/login_radius/raddauth.c index a673fc87085..51726d52714 100644 --- a/libexec/login_radius/raddauth.c +++ b/libexec/login_radius/raddauth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: raddauth.c,v 1.21 2006/08/14 13:53:34 millert Exp $ */ +/* $OpenBSD: raddauth.c,v 1.22 2006/09/20 21:28:09 ray Exp $ */ /*- * Copyright (c) 1996, 1997 Berkeley Software Design, Inc. All rights reserved. @@ -144,10 +144,11 @@ int raddauth(char *username, char *class, char *style, char *challenge, char *password, char **emsg) { + static char _pwstate[1024]; u_char req_id; char *userstyle, *passwd, *pwstate; int auth_port; - char vector[AUTH_VECTOR_LEN+1], _pwstate[1024], *p, *v; + char vector[AUTH_VECTOR_LEN+1], *p, *v; int i; login_cap_t *lc; u_int32_t r; |