summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/check_ntp_time.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/plugins/check_ntp_time.c b/plugins/check_ntp_time.c
index 1300faea..9e0beb9c 100644
--- a/plugins/check_ntp_time.c
+++ b/plugins/check_ntp_time.c
@@ -348,7 +348,6 @@ static offset_request_wrapper offset_request(const char *host, const char *port,
348 is_socket = false; 348 is_socket = false;
349 349
350 /* fill in ai with the list of hosts resolved by the host name */ 350 /* fill in ai with the list of hosts resolved by the host name */
351 struct addrinfo *addresses = NULL;
352 int ga_result = getaddrinfo(host, port, &hints, &addresses); 351 int ga_result = getaddrinfo(host, port, &hints, &addresses);
353 if (ga_result != 0) { 352 if (ga_result != 0) {
354 die(STATE_UNKNOWN, "error getting address for %s: %s\n", host, gai_strerror(ga_result)); 353 die(STATE_UNKNOWN, "error getting address for %s: %s\n", host, gai_strerror(ga_result));