[monitoring-plugins] Fix false formatting directive in printf
Lorenz Kästle
git at monitoring-plugins.org
Sat Nov 9 11:40:12 CET 2024
Module: monitoring-plugins
Branch: master
Commit: f1dae440753b7d36346b0e0a516f69b3ff5d1546
Author: Lorenz Kästle <12514511+RincewindsHat at users.noreply.github.com>
Date: Sat Nov 9 11:26:09 2024 +0100
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=f1dae44
Fix false formatting directive in printf
---
plugins/check_curl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/check_curl.c b/plugins/check_curl.c
index 1d27da2..8ea73ce 100644
--- a/plugins/check_curl.c
+++ b/plugins/check_curl.c
@@ -525,7 +525,7 @@ int check_http(void) {
// use the host_name later on to make SNI happy
if (use_ssl && host_name != NULL) {
if ((res = lookup_host(server_address, addrstr, DEFAULT_BUFFER_SIZE / 2)) != 0) {
- snprintf(msg, DEFAULT_BUFFER_SIZE, _("Unable to lookup IP address for '%s': getaddrinfo returned %d - %d"), server_address, res,
+ snprintf(msg, DEFAULT_BUFFER_SIZE, _("Unable to lookup IP address for '%s': getaddrinfo returned %d - %s"), server_address, res,
gai_strerror(res));
die(STATE_CRITICAL, "HTTP CRITICAL - %s\n", msg);
}
More information about the Commits
mailing list