[openssh-commits] [openssh] 08/15: upstream: fix kex mem-leak in ssh_packet_close; ok djm
git+noreply at mindrot.org
git+noreply at mindrot.org
Fri Jun 26 15:26:11 AEST 2020
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 07f5f369a25e228a7357ef6c57205f191f073d99
Author: markus at openbsd.org <markus at openbsd.org>
Date: Wed Jun 24 15:12:09 2020 +0000
upstream: fix kex mem-leak in ssh_packet_close; ok djm
OpenBSD-Commit-ID: e2e9533f393620383afd0b68ef435de8d5e8abe4
---
packet.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/packet.c b/packet.c
index 4cce4133..4780356f 100644
--- a/packet.c
+++ b/packet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: packet.c,v 1.292 2020/06/24 15:10:38 markus Exp $ */
+/* $OpenBSD: packet.c,v 1.293 2020/06/24 15:12:09 markus Exp $ */
/*
* Author: Tatu Ylonen <ylo at cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -616,6 +616,8 @@ ssh_packet_close_internal(struct ssh *ssh, int do_close)
state->newkeys[mode] = NULL;
ssh_clear_newkeys(ssh, mode); /* next keys */
}
+ kex_free(ssh->kex);
+ ssh->kex = NULL;
#ifdef WITH_ZLIB
/* compression state is in shared mem, so we can only release it once */
if (do_close && state->compression_buffer) {
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list