From a3f0b96f32b9553bcf5e33b18e4637bfc6a12465 Mon Sep 17 00:00:00 2001 From: gcoxmoz Date: Sat, 17 May 2014 00:55:40 -0400 Subject: Update check_tcp.c Return the state asked for, if connection failed. --- plugins/check_tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) gettimeofday (&tv, NULL); result = np_net_connect (server_address, server_port, &sd, PROTOCOL); - if (result == STATE_CRITICAL) return STATE_CRITICAL; + if (result == STATE_CRITICAL) return econn_refuse_state; #ifdef HAVE_SSL if (flags & FLAG_SSL){ -- cgit v1.2.3-74-g34f1