aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2021-06-02 18:31:00 +0000
committerCy Schubert <cy@FreeBSD.org>2021-06-03 00:25:37 +0000
commit48b11217bf7e605e1c386e316cd6e935aceb4927 (patch)
treec610a3a7756c12f40db8f48215ed77d433ad2683
parent903526542ac2309c08c769e517ea173a9f67cdb2 (diff)
downloadsrc-48b11217bf7e605e1c386e316cd6e935aceb4927.tar.gz
src-48b11217bf7e605e1c386e316cd6e935aceb4927.zip
libradius: fix no SSL build
int alen is only used with SSL.
-rw-r--r--lib/libradius/radlib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libradius/radlib.c b/lib/libradius/radlib.c
index 4d21887c4ee2..ce0c0ccf453a 100644
--- a/lib/libradius/radlib.c
+++ b/lib/libradius/radlib.c
@@ -187,8 +187,10 @@ is_valid_response(struct rad_handle *h, int srv,
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;