mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 10:57:01 +00:00
avoid leak of ecdh public key
This commit is contained in:
parent
397af3e6a6
commit
38c9408cf8
@ -694,6 +694,9 @@ void kexecdh_comb_key(struct kex_ecdh_param *param, buffer *pub_them,
|
||||
/* K, the shared secret */
|
||||
buf_putmpint(ses.kexhashbuf, ses.dh_K);
|
||||
|
||||
ecc_free(Q_them);
|
||||
m_free(Q_them);
|
||||
|
||||
/* calculate the hash H to sign */
|
||||
finish_kexhashbuf();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user