Explorar el Código

Update check_tcp.c

Return the state asked for, if connection failed.
gcoxmoz hace 12 años
padre
commit
a3f0b96f32
Se han modificado 1 ficheros con 1 adiciones y 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){