ecdh: Add missing return in ssh_client_ecdh_init().

This commit is contained in:
Andreas Schneider
2013-06-19 12:04:38 +02:00
parent 8a4364a99b
commit e6be005236

View File

@@ -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,