libradius: fix WITHOUT_OPENSSL build

int alen is used only with SSL.

Reported by:	Michael Dexter, Build Option Survey
MFC after:	3 days
Fixes:		8d5c781306 ("libradius: Fix input validation bugs")
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Ed Maste 2021-10-28 16:27:10 -04:00
parent 1c69690319
commit a901f2af58

View File

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