mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 14:39:24 -05:00
Check for null pointers in dh_cleanup.
If we have to abandon a Diffie-Hellman key exchange part way through (e.g. the connection slams shut), and we haven't yet run all the stages of the DH algorithm, then some of the mp_ints in the dh_ctx will be NULL. So we shouldn't mp_free them without checking first.
This commit is contained in:
parent
606cf4c22b
commit
24b9e6716d
Loading…
x
Reference in New Issue
Block a user