Explorar o código

Update check_tcp.c

Return the state asked for, if connection failed.
gcoxmoz %!s(int64=12) %!d(string=hai) anos
pai
achega
a3f0b96f32
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      plugins/check_tcp.c

+ 1 - 1
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){