[monitoring-plugins] cope with radcli-1.3.1 RC_BUFFER_LEN
GitHub
git at monitoring-plugins.org
Sun Mar 12 20:40:11 CET 2023
Module: monitoring-plugins
Branch: master
Commit: 6bbe0b7b0f609ecab831dec9be7690842bf0a0fc
Author: Stuart Henderson <sthen at users.noreply.github.com>
Committer: GitHub <noreply at github.com>
Date: Wed Feb 8 16:35:22 2023 +0000
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=6bbe0b7
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.
---
plugins/check_radius.c | 4 ++++
1 file changed, 4 insertions(+)
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)
{
struct sockaddr_storage ss;
char name[HOST_NAME_MAX];
+#ifdef RC_BUFFER_LEN
+ char msg[RC_BUFFER_LEN];
+#else
char msg[BUFFER_LEN];
+#endif
SEND_DATA data;
int result = STATE_UNKNOWN;
uint32_t client_id, service;
More information about the Commits
mailing list