mirror of
https://github.com/clearml/dropbear
synced 2025-06-16 19:28:49 +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 */
|
/* K, the shared secret */
|
||||||
buf_putmpint(ses.kexhashbuf, ses.dh_K);
|
buf_putmpint(ses.kexhashbuf, ses.dh_K);
|
||||||
|
|
||||||
|
ecc_free(Q_them);
|
||||||
|
m_free(Q_them);
|
||||||
|
|
||||||
/* calculate the hash H to sign */
|
/* calculate the hash H to sign */
|
||||||
finish_kexhashbuf();
|
finish_kexhashbuf();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user