From 82b4cffe662bca161eded94ca67e187229d9c2b8 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Mon, 11 Feb 2013 21:39:13 +0100 Subject: bind: ssh_pki functions also return SSH_EOF error code Reviewed-by: Andreas Schneider --- src/bind.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bind.c b/src/bind.c index add5a70..65a7779 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; -- cgit