ALT Linux repositórios
Group :: Monitoramento
RPM: nagios-plugins
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: nagios-plugins-1.3.1-alt-buildfix.patch
Download
Download
diff -ruN nagios-plugins-1.3.1.orig/plugins/check_radius.c nagios-plugins-1.3.1/plugins/check_radius.c
--- nagios-plugins-1.3.1.orig/plugins/check_radius.c 2003-01-16 16:21:41 +1000
+++ nagios-plugins-1.3.1/plugins/check_radius.c 2003-11-08 02:18:00 +1000
@@ -154,6 +154,7 @@
SEND_DATA data = { 0 };
int result;
UINT4 client_id;
+ REQUEST_INFO *req_info = NULL;
if (process_arguments (argc, argv) == ERROR)
usage ("Could not parse arguments\n");
@@ -164,9 +165,9 @@
service = PW_AUTHENTICATE_ONLY;
- if (!(rc_avpair_add (&data.send_pairs, PW_SERVICE_TYPE, &service, 0) &&
- rc_avpair_add (&data.send_pairs, PW_USER_NAME, username, 0) &&
- rc_avpair_add (&data.send_pairs, PW_USER_PASSWORD, password, 0)))
+ if (!(rc_avpair_add (&data.send_pairs, PW_SERVICE_TYPE, &service, 0, 0) &&
+ rc_avpair_add (&data.send_pairs, PW_USER_NAME, username, 0, 0) &&
+ rc_avpair_add (&data.send_pairs, PW_USER_PASSWORD, password, 0, 0)))
terminate (STATE_UNKNOWN, "Out of Memory?");
/*
@@ -176,13 +177,13 @@
if ((client_id = rc_own_ipaddress ()) == 0)
return (ERROR_RC);
- if (rc_avpair_add (&(data.send_pairs), PW_NAS_IP_ADDRESS, &client_id, 0) ==
+ if (rc_avpair_add (&(data.send_pairs), PW_NAS_IP_ADDRESS, &client_id, 0, 0) ==
NULL) return (ERROR_RC);
rc_buildreq (&data, PW_ACCESS_REQUEST, server, port, timeout_interval,
retries);
- result = rc_send_server (&data, msg);
+ result = rc_send_server (&data, msg, req_info);
rc_avpair_free (data.send_pairs);
if (data.receive_pairs)
rc_avpair_free (data.receive_pairs);