check_ssh: Fix format expression

This commit is contained in:
Lorenz Kästle 2025-08-01 14:34:29 +02:00
parent 69925c782b
commit 3c53bf623d

View file

@ -289,7 +289,7 @@ int ssh_connect(mp_check *overall, char *haddr, int hport, char *desired_remote_
if (recv_ret < 0) {
connection_sc = mp_set_subcheck_state(connection_sc, STATE_CRITICAL);
xasprintf(&connection_sc.output, "%s", "SSH CRITICAL - %s", strerror(errno));
xasprintf(&connection_sc.output, "%s - %s", "SSH CRITICAL - ", strerror(errno));
mp_add_subcheck_to_check(overall, connection_sc);
return OK;
}