Rewrite strerror to ssh_strerror

Signed-off-by: Norbert Pocs <npocs@redhat.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Norbert Pocs
2022-07-04 10:08:07 +02:00
committed by Jakub Jelen
parent 3efe7c3cfb
commit c437ba5c28

View File

@@ -515,10 +515,11 @@ static int ssh_retrieve_dhgroup(char *moduli_file,
moduli = fopen(MODULI_FILE, "r");
if (moduli == NULL) {
char err_msg[SSH_ERRNO_MSG_MAX] = {0};
SSH_LOG(SSH_LOG_WARNING,
"Unable to open moduli file: %s",
strerror(errno));
return ssh_fallback_group(pmax, p, g);
ssh_strerror(errno, err_msg, SSH_ERRNO_MSG_MAX));
return ssh_fallback_group(pmax, p, g);
}
*size = 0;