diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2016-11-17 00:03:50 +0100 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2016-11-17 00:03:50 +0100 |
commit | bfc745a79d4912479b725c00375aa171f8528ca2 (patch) | |
tree | 7a0ed9eedc76c104b2c9c3ebc2fbbc08ad227691 | |
parent | 14929f268724385bb92033b4666612c3d7946d4e (diff) | |
download | monitoring-plugins-bfc745a79d4912479b725c00375aa171f8528ca2.tar.gz |
check_radius: Fix rc_send_server() call for radcli
With radcli, the rc_send_server() function expects an additional
argument.
-rw-r--r-- | plugins/check_radius.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/check_radius.c b/plugins/check_radius.c index 0182f2d2..518f1588 100644 --- a/plugins/check_radius.c +++ b/plugins/check_radius.c | |||
@@ -52,7 +52,11 @@ void print_usage (void); | |||
52 | 52 | ||
53 | #if defined(HAVE_LIBFREERADIUS_CLIENT) || defined(HAVE_LIBRADIUSCLIENT_NG) || defined(HAVE_LIBRADCLI) | 53 | #if defined(HAVE_LIBFREERADIUS_CLIENT) || defined(HAVE_LIBRADIUSCLIENT_NG) || defined(HAVE_LIBRADCLI) |
54 | #define my_rc_conf_str(a) rc_conf_str(rch,a) | 54 | #define my_rc_conf_str(a) rc_conf_str(rch,a) |
55 | #if defined(HAVE_LIBRADCLI) | ||
56 | #define my_rc_send_server(a,b) rc_send_server(rch,a,b,AUTH) | ||
57 | #else | ||
55 | #define my_rc_send_server(a,b) rc_send_server(rch,a,b) | 58 | #define my_rc_send_server(a,b) rc_send_server(rch,a,b) |
59 | #endif | ||
56 | #if defined(HAVE_LIBFREERADIUS_CLIENT) || defined(HAVE_LIBRADCLI) | 60 | #if defined(HAVE_LIBFREERADIUS_CLIENT) || defined(HAVE_LIBRADCLI) |
57 | #define my_rc_buildreq(a,b,c,d,e,f) rc_buildreq(rch,a,b,c,d,(a)->secret,e,f) | 61 | #define my_rc_buildreq(a,b,c,d,e,f) rc_buildreq(rch,a,b,c,d,(a)->secret,e,f) |
58 | #else | 62 | #else |