mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-07 02:39:48 +09:00
Add more error checks to ssh_get_kex().
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@421 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@@ -339,8 +339,9 @@ int ssh_accept(SSH_SESSION *session){
|
||||
return -1;
|
||||
}
|
||||
ssh_send_kex(session,1);
|
||||
if(ssh_get_kex(session,1))
|
||||
if(ssh_get_kex(session,1) < 0) {
|
||||
return -1;
|
||||
}
|
||||
ssh_list_kex(session, &session->client_kex);
|
||||
crypt_set_algorithms_server(session);
|
||||
if(dh_handshake_server(session))
|
||||
|
||||
Reference in New Issue
Block a user