summaryrefslogtreecommitdiffstats
path: root/web/attachments/354598-patch-check_radius.c.txt
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/354598-patch-check_radius.c.txt')
-rw-r--r--web/attachments/354598-patch-check_radius.c.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/web/attachments/354598-patch-check_radius.c.txt b/web/attachments/354598-patch-check_radius.c.txt
new file mode 100644
index 0000000..4a57128
--- /dev/null
+++ b/web/attachments/354598-patch-check_radius.c.txt
@@ -0,0 +1,21 @@
1--- plugins/check_radius.c.virgin 2009-12-09 18:04:27.000000000 -0800
2+++ plugins/check_radius.c 2009-12-09 18:27:42.000000000 -0800
3@@ -191,13 +191,16 @@
4 die (STATE_CRITICAL, _("Timeout"));
5 if (result == ERROR_RC)
6 die (STATE_CRITICAL, _("Auth Error"));
7- if (result == BADRESP_RC)
8+ if (result == REJECT_RC)
9 die (STATE_WARNING, _("Auth Failed"));
10+ if (result == BADRESP_RC)
11+ die (STATE_WARNING, _("Bad Response"));
12 if (expect && !strstr (msg, expect))
13 die (STATE_WARNING, "%s", msg);
14 if (result == OK_RC)
15 die (STATE_OK, _("Auth OK"));
16- return (0);
17+ (void)snprintf(msg, sizeof(msg), "unexpected result code %d", result);
18+ die (STATE_UNKNOWN, _(msg));
19 }
20
21