diff options
Diffstat (limited to 'libssh/server.c')
-rw-r--r-- | libssh/server.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libssh/server.c b/libssh/server.c index cd2db3e0..6aebf673 100644 --- a/libssh/server.c +++ b/libssh/server.c @@ -290,7 +290,9 @@ static int dh_handshake_server(SSH_SESSION *session){ publickey_free(pub); dh_import_pubkey(session,pubkey); dh_build_k(session); - make_sessionid(session); + if (make_sessionid(session) != SSH_OK) { + return -1; + } sign=ssh_sign_session_id(session,prv); buffer_free(buf); /* free private keys as they should not be readable past this point */ |