summaryrefslogtreecommitdiffstats
path: root/libssh/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/server.c')
-rw-r--r--libssh/server.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libssh/server.c b/libssh/server.c
index 2809a8ec..7b3602b9 100644
--- a/libssh/server.c
+++ b/libssh/server.c
@@ -272,7 +272,10 @@ static int dh_handshake_server(SSH_SESSION *session){
ssh_set_error(session,SSH_FATAL,"No e number in client request");
return -1;
}
- dh_import_e(session,e);
+ if (dh_import_e(session, e) < 0) {
+ ssh_set_error(session,SSH_FATAL,"Cannot import e number");
+ return -1;
+ }
free(e);
if (dh_generate_y(session) < 0) {
ssh_set_error(session,SSH_FATAL,"Could not create y number");