summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--plugins/check_tcp.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index a58c4ce..d25f8b3 100644
--- a/NEWS
+++ b/NEWS
@@ -2,7 +2,6 @@ This file documents the major additions and syntax changes between releases.
2 2
31.4.12 or 1.5 ?? 31.4.12 or 1.5 ??
4 Added ./check_nt -v INSTANCES to count number of instances (Alessandro Ren) 4 Added ./check_nt -v INSTANCES to count number of instances (Alessandro Ren)
5 check_tcp now returns UNKNOWN with invalid hostname
6 New check_icmp -s option to specify the source IP address 5 New check_icmp -s option to specify the source IP address
7 check_dns now sorts addresses for testing results for more than one returned IP (Matthias Urlichs) 6 check_dns now sorts addresses for testing results for more than one returned IP (Matthias Urlichs)
8 Fix segfault in check_ntp_time and (deprecated) check_ntp. (Bug #1862300) 7 Fix segfault in check_ntp_time and (deprecated) check_ntp. (Bug #1862300)
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index 7e47009..e502c0d 100644
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
@@ -584,7 +584,7 @@ process_arguments (int argc, char **argv)
584 if (server_address == NULL) 584 if (server_address == NULL)
585 usage4 (_("You must provide a server address")); 585 usage4 (_("You must provide a server address"));
586 else if (server_address[0] != '/' && is_host (server_address) == FALSE) 586 else if (server_address[0] != '/' && is_host (server_address) == FALSE)
587 die (STATE_UNKNOWN, "%s %s - %s: %s\n", SERVICE, state_text(STATE_UNKNOWN), _("Invalid hostname, address or socket"), server_address); 587 die (STATE_CRITICAL, "%s %s - %s: %s\n", SERVICE, state_text(STATE_CRITICAL), _("Invalid hostname, address or socket"), server_address);
588 588
589 return TRUE; 589 return TRUE;
590} 590}