Browse Source

Update check_tcp.c

Return the state asked for, if connection failed.
gcoxmoz 12 năm trước cách đây
mục cha
commit
a3f0b96f32
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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){