mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-22 14:46:57 -04:00
Merge pull request #2046 from RincewindsHat/fix/format_string
Fix false formatting directive in printf
This commit is contained in:
commit
5d7d620903
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue