aboutsummaryrefslogtreecommitdiff
path: root/plugins/netutils.c
diff options
context:
space:
mode:
authorGravatar gcoxmoz <gcox@mozilla.com> 2014-05-17 01:16:12 -0400
committerGravatar gcoxmoz <gcox@mozilla.com> 2014-05-17 01:16:12 -0400
commitf05e7016320f4671fbf86cc5abc277efea20f79e (patch)
tree368fca21ae537cf49a12f3191670911a03315f4d /plugins/netutils.c
parent0a89db746dfe930c4705f4a1cef007c1888799dd (diff)
downloadmonitoring-plugins-f05e7016320f4671fbf86cc5abc277efea20f79e.tar.gz
Patch against issue 1062
Diffstat (limited to 'plugins/netutils.c')
-rw-r--r--plugins/netutils.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/netutils.c b/plugins/netutils.c
index f5e7dff2..7ae97223 100644
--- a/plugins/netutils.c
+++ b/plugins/netutils.c
@@ -253,9 +253,7 @@ np_net_connect (const char *host_name, int port, int *sd, int proto)
else if (was_refused) {
switch (econn_refuse_state) { /* a user-defined expected outcome */
case STATE_OK:
- case STATE_WARNING: /* user wants WARN or OK on refusal, stay quiet */
- return STATE_CRITICAL;
- break;
+ case STATE_WARNING: /* user wants WARN or OK on refusal, or... */
case STATE_CRITICAL: /* user did not set econn_refuse_state, or wanted critical */
printf ("%s\n", strerror(errno));
return STATE_CRITICAL;