diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-04-16 14:24:13 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-04-16 14:24:13 +0000 |
commit | 5dc03728ed48c0b60715af36c09804a88c0751f2 (patch) | |
tree | 7edf49defff6d5f696856fa7b3949adbaba7a6ec /libssh/client.c | |
parent | 50b701b4e47a9071685de989137b650b1af61196 (diff) | |
download | libssh-5dc03728ed48c0b60715af36c09804a88c0751f2.tar.gz libssh-5dc03728ed48c0b60715af36c09804a88c0751f2.tar.xz libssh-5dc03728ed48c0b60715af36c09804a88c0751f2.zip |
Add return value to dh_generate_x().
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@498 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/client.c')
-rw-r--r-- | libssh/client.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libssh/client.c b/libssh/client.c index cfcaf96..57cbd18 100644 --- a/libssh/client.c +++ b/libssh/client.c @@ -201,7 +201,9 @@ static int dh_handshake(SSH_SESSION *session) { goto error; } - dh_generate_x(session); + if (dh_generate_x(session) < 0) { + goto error; + } dh_generate_e(session); e = dh_get_e(session); |