diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-09-23 22:27:46 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-09-23 22:27:46 +0200 |
commit | 046aa02f39947fff16dff6cfe6db6dcf53fb6d96 (patch) | |
tree | 765228347e3217fe5fc5f8bfb445151132508c9d /src/ecdh.c | |
parent | 8a3b02f68dad8f5dd2f236e26d44dd67b3597be4 (diff) | |
download | libssh-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) { |