summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ecdh.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ecdh.c b/src/ecdh.c
index 89c3213..075810a 100644
--- a/src/ecdh.c
+++ b/src/ecdh.c
@@ -69,6 +69,7 @@ int ssh_client_ecdh_init(ssh_session session){
if (client_pubkey == NULL) {
BN_CTX_free(ctx);
EC_KEY_free(key);
+ return SSH_ERROR;
}
EC_POINT_point2oct(group,pubkey,POINT_CONVERSION_UNCOMPRESSED,