mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-07 02:39:48 +09:00
Add return value to dh_generate_f().
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@501 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@@ -278,7 +278,10 @@ static int dh_handshake_server(SSH_SESSION *session){
|
||||
ssh_set_error(session,SSH_FATAL,"Could not create y number");
|
||||
return -1;
|
||||
}
|
||||
dh_generate_f(session);
|
||||
if (dh_generate_f(session) < 0) {
|
||||
ssh_set_error(session,SSH_FATAL,"Could not create f number");
|
||||
return -1;
|
||||
}
|
||||
f=dh_get_f(session);
|
||||
switch(session->hostkeys){
|
||||
case TYPE_DSS:
|
||||
|
||||
Reference in New Issue
Block a user