From 3ae751ed67bb59c5073e0a160f4125ba2a5ff1e4 Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Thu, 4 Dec 2025 13:24:14 +0100 Subject: Fix check_ntp_time without a socket (#2196) In the previous commit I unintentionally introduced an error through symbol shadowing. This should fix check_ntp_time when the target address is a network address. --- plugins/check_ntp_time.c | 1 - 1 file changed, 1 deletion(-) (limited to 'plugins/check_ntp_time.c') 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, is_socket = false; /* fill in ai with the list of hosts resolved by the host name */ - struct addrinfo *addresses = NULL; int ga_result = getaddrinfo(host, port, &hints, &addresses); if (ga_result != 0) { die(STATE_UNKNOWN, "error getting address for %s: %s\n", host, gai_strerror(ga_result)); -- cgit v1.2.3-74-g34f1