diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2021-10-28 20:27:10 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2021-10-28 21:05:53 +0000 |
| commit | a901f2af587f9cb068e2fca6b62f324bdde471d8 (patch) | |
| tree | d18ac9772263f9a9592a423f451b0830166321f8 | |
| parent | 1c69690319c5bb7deae6ce1add6ea25bb40b3b91 (diff) | |
libradius: fix WITHOUT_OPENSSL build
int alen is used only with SSL.
Reported by: Michael Dexter, Build Option Survey
MFC after: 3 days
Fixes: 8d5c7813061d ("libradius: Fix input validation bugs")
Sponsored by: The FreeBSD Foundation
| -rw-r--r-- | lib/libradius/radlib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libradius/radlib.c b/lib/libradius/radlib.c index ce0c0ccf453a..dd65eda285cb 100644 --- a/lib/libradius/radlib.c +++ b/lib/libradius/radlib.c @@ -286,8 +286,9 @@ is_valid_request(struct rad_handle *h) MD5_CTX ctx; unsigned char md5[MD5_DIGEST_LENGTH]; const struct rad_server *srvp; - int alen, len; + int len; #ifdef WITH_SSL + int alen; HMAC_CTX *hctx; u_char resp[MSGSIZE], md[EVP_MAX_MD_SIZE]; u_int md_len; |
