[monitoring-plugins] check_radius: Fix rc_send_server() call for radcli

Holger Weiss git at monitoring-plugins.org
Fri Nov 18 11:10:11 CET 2016


 Module: monitoring-plugins
 Branch: master
 Commit: bfc745a79d4912479b725c00375aa171f8528ca2
 Author: Holger Weiss <holger at zedat.fu-berlin.de>
   Date: Thu Nov 17 00:03:50 2016 +0100
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=bfc745a

check_radius: Fix rc_send_server() call for radcli

With radcli, the rc_send_server() function expects an additional
argument.

---

 plugins/check_radius.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/plugins/check_radius.c b/plugins/check_radius.c
index 0182f2d..518f158 100644
--- a/plugins/check_radius.c
+++ b/plugins/check_radius.c
@@ -52,7 +52,11 @@ void print_usage (void);
 
 #if defined(HAVE_LIBFREERADIUS_CLIENT) || defined(HAVE_LIBRADIUSCLIENT_NG) || defined(HAVE_LIBRADCLI)
 #define my_rc_conf_str(a) rc_conf_str(rch,a)
+#if defined(HAVE_LIBRADCLI)
+#define my_rc_send_server(a,b) rc_send_server(rch,a,b,AUTH)
+#else
 #define my_rc_send_server(a,b) rc_send_server(rch,a,b)
+#endif
 #if defined(HAVE_LIBFREERADIUS_CLIENT) || defined(HAVE_LIBRADCLI)
 #define my_rc_buildreq(a,b,c,d,e,f) rc_buildreq(rch,a,b,c,d,(a)->secret,e,f)
 #else



More information about the Commits mailing list