summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packet.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/packet.c b/packet.c
index 4780356f2..9ffd9f59b 100644
--- a/packet.c
+++ b/packet.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: packet.c,v 1.293 2020/06/24 15:12:09 markus Exp $ */ 1/* $OpenBSD: packet.c,v 1.294 2020/06/26 11:26:01 semarie Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -616,8 +616,6 @@ ssh_packet_close_internal(struct ssh *ssh, int do_close)
616 state->newkeys[mode] = NULL; 616 state->newkeys[mode] = NULL;
617 ssh_clear_newkeys(ssh, mode); /* next keys */ 617 ssh_clear_newkeys(ssh, mode); /* next keys */
618 } 618 }
619 kex_free(ssh->kex);
620 ssh->kex = NULL;
621#ifdef WITH_ZLIB 619#ifdef WITH_ZLIB
622 /* compression state is in shared mem, so we can only release it once */ 620 /* compression state is in shared mem, so we can only release it once */
623 if (do_close && state->compression_buffer) { 621 if (do_close && state->compression_buffer) {