mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09:00
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:
committed by
Jakub Jelen
parent
3efe7c3cfb
commit
c437ba5c28
@@ -515,10 +515,11 @@ static int ssh_retrieve_dhgroup(char *moduli_file,
|
|||||||
moduli = fopen(MODULI_FILE, "r");
|
moduli = fopen(MODULI_FILE, "r");
|
||||||
|
|
||||||
if (moduli == NULL) {
|
if (moduli == NULL) {
|
||||||
|
char err_msg[SSH_ERRNO_MSG_MAX] = {0};
|
||||||
SSH_LOG(SSH_LOG_WARNING,
|
SSH_LOG(SSH_LOG_WARNING,
|
||||||
"Unable to open moduli file: %s",
|
"Unable to open moduli file: %s",
|
||||||
strerror(errno));
|
ssh_strerror(errno, err_msg, SSH_ERRNO_MSG_MAX));
|
||||||
return ssh_fallback_group(pmax, p, g);
|
return ssh_fallback_group(pmax, p, g);
|
||||||
}
|
}
|
||||||
|
|
||||||
*size = 0;
|
*size = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user