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. diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index 2714961..0a6e2b2 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 v0.10-9-g596f