aboutsummaryrefslogtreecommitdiff
path: root/src/ecdh.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2011-09-23 22:27:46 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2011-09-23 22:27:46 +0200
commit046aa02f39947fff16dff6cfe6db6dcf53fb6d96 (patch)
tree765228347e3217fe5fc5f8bfb445151132508c9d /src/ecdh.c
parent8a3b02f68dad8f5dd2f236e26d44dd67b3597be4 (diff)
downloadlibssh-046aa02f39947fff16dff6cfe6db6dcf53fb6d96.tar.gz
libssh-046aa02f39947fff16dff6cfe6db6dcf53fb6d96.tar.xz
libssh-046aa02f39947fff16dff6cfe6db6dcf53fb6d96.zip
Fix bugs found by clang
Diffstat (limited to 'src/ecdh.c')
-rw-r--r--src/ecdh.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ecdh.c b/src/ecdh.c
index 706ad689..95834730 100644
--- a/src/ecdh.c
+++ b/src/ecdh.c
@@ -251,7 +251,8 @@ int ssh_server_ecdh_init(ssh_session session, ssh_buffer packet){
ssh_log(session,SSH_LOG_PROTOCOL, "SSH_MSG_KEXDH_REPLY sent");
rc = packet_send(session);
-
+ if (rc == SSH_ERROR)
+ goto error;
/* Send the MSG_NEWKEYS */
if (buffer_add_u8(session->out_buffer, SSH2_MSG_NEWKEYS) < 0) {