mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-05-28 04:35:40 -04:00
Fix false formatting directive in printf
This commit is contained in:
parent
b370072a5a
commit
f1dae44075
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