summaryrefslogtreecommitdiffstats
path: root/libssh/client.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-04-16 14:31:06 +0000
committerAndreas Schneider <mail@cynapses.org>2009-04-16 14:31:06 +0000
commitbaf2eaf16503ae6c2ed36614fa1b5f2c31bdca1e (patch)
tree32f8943ef5ba831205dc651ab71c4b0de0d88957 /libssh/client.c
parentece047171a45dc09d12e08753d3c7a08c5a2a73c (diff)
downloadlibssh-baf2eaf16503ae6c2ed36614fa1b5f2c31bdca1e.tar.gz
libssh-baf2eaf16503ae6c2ed36614fa1b5f2c31bdca1e.tar.xz
libssh-baf2eaf16503ae6c2ed36614fa1b5f2c31bdca1e.zip
Add return value to dh_generate_e().
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@500 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/client.c')
-rw-r--r--libssh/client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libssh/client.c b/libssh/client.c
index 57cbd18..70956c9 100644
--- a/libssh/client.c
+++ b/libssh/client.c
@@ -204,7 +204,9 @@ static int dh_handshake(SSH_SESSION *session) {
if (dh_generate_x(session) < 0) {
goto error;
}
- dh_generate_e(session);
+ if (dh_generate_e(session) < 0) {
+ goto error;
+ }
e = dh_get_e(session);
if (e == NULL) {