diff options
author | gcoxmoz <gcox@mozilla.com> | 2014-05-17 00:55:40 -0400 |
---|---|---|
committer | gcoxmoz <gcox@mozilla.com> | 2014-05-17 00:55:40 -0400 |
commit | a3f0b96f32b9553bcf5e33b18e4637bfc6a12465 (patch) | |
tree | 047535679c5421084a88173ef2d5ca20d0940a6b /plugins/check_tcp.c | |
parent | 1b3890572ed5c19ce51634c1a071c0a24eb61ddf (diff) | |
download | monitoring-plugins-a3f0b96f32b9553bcf5e33b18e4637bfc6a12465.tar.gz |
Update check_tcp.c
Return the state asked for, if connection failed.
Diffstat (limited to 'plugins/check_tcp.c')
-rw-r--r-- | plugins/check_tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index 2714961f..0a6e2b27 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c | |||
@@ -238,7 +238,7 @@ main (int argc, char **argv) | |||
238 | gettimeofday (&tv, NULL); | 238 | gettimeofday (&tv, NULL); |
239 | 239 | ||
240 | result = np_net_connect (server_address, server_port, &sd, PROTOCOL); | 240 | result = np_net_connect (server_address, server_port, &sd, PROTOCOL); |
241 | if (result == STATE_CRITICAL) return STATE_CRITICAL; | 241 | if (result == STATE_CRITICAL) return econn_refuse_state; |
242 | 242 | ||
243 | #ifdef HAVE_SSL | 243 | #ifdef HAVE_SSL |
244 | if (flags & FLAG_SSL){ | 244 | if (flags & FLAG_SSL){ |