aboutsummaryrefslogtreecommitdiff
path: root/src/bind.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2013-02-11 21:39:13 +0100
committerAndreas Schneider <asn@cryptomilk.org>2013-07-13 14:03:55 +0200
commit82b4cffe662bca161eded94ca67e187229d9c2b8 (patch)
tree55e4dc8efbdb277c24c1a4a5fe091664d045d7ed /src/bind.c
parent66b37c856c29b77ab548063de2fb64a8435e8b9f (diff)
downloadlibssh-82b4cffe662bca161eded94ca67e187229d9c2b8.tar.gz
libssh-82b4cffe662bca161eded94ca67e187229d9c2b8.tar.xz
libssh-82b4cffe662bca161eded94ca67e187229d9c2b8.zip
bind: ssh_pki functions also return SSH_EOF error code
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/bind.c')
-rw-r--r--src/bind.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bind.c b/src/bind.c
index add5a702..65a77797 100644
--- a/src/bind.c
+++ b/src/bind.c
@@ -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;