diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-09 11:37:46 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-09 11:37:46 +0100 |
| commit | 5d7d620903a2fb40f8cd3140081bfb7ceaf125d5 (patch) | |
| tree | 84aaf21984f7032a09ba3bba7702408a02469451 | |
| parent | ed52a7dbb7997c8fa9779e89fd2012eae85b2ce0 (diff) | |
| parent | f1dae440753b7d36346b0e0a516f69b3ff5d1546 (diff) | |
| download | monitoring-plugins-5d7d620903a2fb40f8cd3140081bfb7ceaf125d5.tar.gz | |
Merge pull request #2046 from RincewindsHat/fix/format_string
Fix false formatting directive in printf
| -rw-r--r-- | plugins/check_curl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c index 1d27da28..8ea73ce1 100644 --- a/plugins/check_curl.c +++ b/plugins/check_curl.c | |||
| @@ -525,7 +525,7 @@ int check_http(void) { | |||
| 525 | // use the host_name later on to make SNI happy | 525 | // use the host_name later on to make SNI happy |
| 526 | if (use_ssl && host_name != NULL) { | 526 | if (use_ssl && host_name != NULL) { |
| 527 | if ((res = lookup_host(server_address, addrstr, DEFAULT_BUFFER_SIZE / 2)) != 0) { | 527 | if ((res = lookup_host(server_address, addrstr, DEFAULT_BUFFER_SIZE / 2)) != 0) { |
| 528 | snprintf(msg, DEFAULT_BUFFER_SIZE, _("Unable to lookup IP address for '%s': getaddrinfo returned %d - %d"), server_address, res, | 528 | snprintf(msg, DEFAULT_BUFFER_SIZE, _("Unable to lookup IP address for '%s': getaddrinfo returned %d - %s"), server_address, res, |
| 529 | gai_strerror(res)); | 529 | gai_strerror(res)); |
| 530 | die(STATE_CRITICAL, "HTTP CRITICAL - %s\n", msg); | 530 | die(STATE_CRITICAL, "HTTP CRITICAL - %s\n", msg); |
| 531 | } | 531 | } |
