mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-29 01:03:57 +03:00
bind: ssh_pki functions also return SSH_EOF error code
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
66b37c856c
commit
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;
|
||||
|
||||
Reference in New Issue
Block a user