summaryrefslogtreecommitdiffstats
path: root/plugins/check_radius.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_radius.c')
-rw-r--r--plugins/check_radius.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/check_radius.c b/plugins/check_radius.c
index 3aa5ae71..714de58c 100644
--- a/plugins/check_radius.c
+++ b/plugins/check_radius.c
@@ -165,14 +165,14 @@ main (int argc, char **argv)
165 165
166 if ((config_file && rc_read_config (config_file)) || 166 if ((config_file && rc_read_config (config_file)) ||
167 rc_read_dictionary (rc_conf_str ("dictionary"))) 167 rc_read_dictionary (rc_conf_str ("dictionary")))
168 terminate (STATE_UNKNOWN, _("Config file error")); 168 die (STATE_UNKNOWN, _("Config file error"));
169 169
170 service = PW_AUTHENTICATE_ONLY; 170 service = PW_AUTHENTICATE_ONLY;
171 171
172 if (!(rc_avpair_add (&data.send_pairs, PW_SERVICE_TYPE, &service, 0) && 172 if (!(rc_avpair_add (&data.send_pairs, PW_SERVICE_TYPE, &service, 0) &&
173 rc_avpair_add (&data.send_pairs, PW_USER_NAME, username, 0) && 173 rc_avpair_add (&data.send_pairs, PW_USER_NAME, username, 0) &&
174 rc_avpair_add (&data.send_pairs, PW_USER_PASSWORD, password, 0))) 174 rc_avpair_add (&data.send_pairs, PW_USER_PASSWORD, password, 0)))
175 terminate (STATE_UNKNOWN, _("Out of Memory?")); 175 die (STATE_UNKNOWN, _("Out of Memory?"));
176 176
177 /* 177 /*
178 * Fill in NAS-IP-Address 178 * Fill in NAS-IP-Address
@@ -193,15 +193,15 @@ main (int argc, char **argv)
193 rc_avpair_free (data.receive_pairs); 193 rc_avpair_free (data.receive_pairs);
194 194
195 if (result == TIMEOUT_RC) 195 if (result == TIMEOUT_RC)
196 terminate (STATE_CRITICAL, _("Timeout")); 196 die (STATE_CRITICAL, _("Timeout"));
197 if (result == ERROR_RC) 197 if (result == ERROR_RC)
198 terminate (STATE_CRITICAL, _("Auth Error")); 198 die (STATE_CRITICAL, _("Auth Error"));
199 if (result == BADRESP_RC) 199 if (result == BADRESP_RC)
200 terminate (STATE_WARNING, _("Auth Failed")); 200 die (STATE_WARNING, _("Auth Failed"));
201 if (expect && !strstr (msg, expect)) 201 if (expect && !strstr (msg, expect))
202 terminate (STATE_WARNING, msg); 202 die (STATE_WARNING, msg);
203 if (result == OK_RC) 203 if (result == OK_RC)
204 terminate (STATE_OK, _("Auth OK")); 204 die (STATE_OK, _("Auth OK"));
205 return (0); 205 return (0);
206} 206}
207 207