mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09:00
ecdh: Add missing return in ssh_client_ecdh_init().
This commit is contained in:
@@ -69,6 +69,7 @@ int ssh_client_ecdh_init(ssh_session session){
|
|||||||
if (client_pubkey == NULL) {
|
if (client_pubkey == NULL) {
|
||||||
BN_CTX_free(ctx);
|
BN_CTX_free(ctx);
|
||||||
EC_KEY_free(key);
|
EC_KEY_free(key);
|
||||||
|
return SSH_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
EC_POINT_point2oct(group,pubkey,POINT_CONVERSION_UNCOMPRESSED,
|
EC_POINT_point2oct(group,pubkey,POINT_CONVERSION_UNCOMPRESSED,
|
||||||
|
|||||||
Reference in New Issue
Block a user