1
1

bind: ssh_pki functions also return SSH_EOF error code

Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Этот коммит содержится в:
Aris Adamantiadis 2013-02-11 21:39:13 +01:00 коммит произвёл Andreas Schneider
родитель 66b37c856c
Коммит 82b4cffe66

Просмотреть файл

@ -169,7 +169,7 @@ int ssh_bind_listen(ssh_bind sshbind) {
NULL,
NULL,
&sshbind->ecdsa);
if (rc == SSH_ERROR) {
if (rc == SSH_ERROR || rc == SSH_EOF) {
ssh_set_error(sshbind, SSH_FATAL,
"Failed to import private ECDSA host key");
return SSH_ERROR;
@ -190,7 +190,7 @@ int ssh_bind_listen(ssh_bind sshbind) {
NULL,
NULL,
&sshbind->dsa);
if (rc == SSH_ERROR) {
if (rc == SSH_ERROR || rc == SSH_EOF) {
ssh_set_error(sshbind, SSH_FATAL,
"Failed to import private DSA host key");
return SSH_ERROR;
@ -211,7 +211,7 @@ int ssh_bind_listen(ssh_bind sshbind) {
NULL,
NULL,
&sshbind->rsa);
if (rc == SSH_ERROR) {
if (rc == SSH_ERROR || rc == SSH_EOF) {
ssh_set_error(sshbind, SSH_FATAL,
"Failed to import private RSA host key");
return SSH_ERROR;