summaryrefslogtreecommitdiffhomepage
path: root/fuzzer-kexecdh.c
diff options
context:
space:
mode:
Diffstat (limited to 'fuzzer-kexecdh.c')
-rw-r--r--fuzzer-kexecdh.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/fuzzer-kexecdh.c b/fuzzer-kexecdh.c
index 693aecb..c3a450a 100644
--- a/fuzzer-kexecdh.c
+++ b/fuzzer-kexecdh.c
@@ -63,10 +63,14 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
ses.kexhashbuf = buf_new(KEXHASHBUF_MAX_INTS);
kexecdh_comb_key(ecdh_param, ecdh_qs, svr_opts.hostkey);
- /* kexhashbuf is freed in kexdh_comb_key */
+ mp_clear(ses.dh_K);
m_free(ses.dh_K);
buf_free(ecdh_qs);
+ buf_free(ses.hash);
+ buf_free(ses.session_id);
+ /* kexhashbuf is freed in kexdh_comb_key */
+
m_malloc_free_epoch(1, 0);
} else {
m_malloc_free_epoch(1, 1);