summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStuart Henderson <sthen@users.noreply.github.com>2023-02-08 16:35:22 (GMT)
committerGitHub <noreply@github.com>2023-02-08 16:35:22 (GMT)
commit6bbe0b7b0f609ecab831dec9be7690842bf0a0fc (patch)
treee0f1600aae17235aed85ce900f6e73b9ada0fc03
parente0dfb0622d19a4b4340dab9a315cb4b649f6f1e4 (diff)
downloadmonitoring-plugins-6bbe0b7.tar.gz
cope with radcli-1.3.1 RC_BUFFER_LEN
radcli 1.3.1 now uses RC_BUFFER_LEN instead of BUFFER_LEN. Add an #ifdef to allow working with either.
-rw-r--r--plugins/check_radius.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/check_radius.c b/plugins/check_radius.c
index be1001b..96a9555 100644
--- a/plugins/check_radius.c
+++ b/plugins/check_radius.c
@@ -155,7 +155,11 @@ main (int argc, char **argv)
155{ 155{
156 struct sockaddr_storage ss; 156 struct sockaddr_storage ss;
157 char name[HOST_NAME_MAX]; 157 char name[HOST_NAME_MAX];
158#ifdef RC_BUFFER_LEN
159 char msg[RC_BUFFER_LEN];
160#else
158 char msg[BUFFER_LEN]; 161 char msg[BUFFER_LEN];
162#endif
159 SEND_DATA data; 163 SEND_DATA data;
160 int result = STATE_UNKNOWN; 164 int result = STATE_UNKNOWN;
161 uint32_t client_id, service; 165 uint32_t client_id, service;