summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2020-07-03 07:17:36 +0000
committerDamien Miller <djm@cvs.openbsd.org>2020-07-03 07:17:36 +0000
commit7d3d492454524dff8fdd33956b44fe288b005467 (patch)
treeaa2d97e622e9b0b2ab0b20d5910e4b59507df20b
parent5e8b74cd6888a3cb14b734b2762c6b18794a0422 (diff)
revert r1.399 - the lifetime of c->mux_ctx is more complex; simply freeing
it here causes other problems
-rw-r--r--usr.bin/ssh/channels.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/ssh/channels.c b/usr.bin/ssh/channels.c
index cd2e269d39a..0efb095d17f 100644
--- a/usr.bin/ssh/channels.c
+++ b/usr.bin/ssh/channels.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: channels.c,v 1.399 2020/07/03 05:08:41 djm Exp $ */
+/* $OpenBSD: channels.c,v 1.400 2020/07/03 07:17:35 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -611,8 +611,6 @@ channel_free(struct ssh *ssh, Channel *c)
c->path = NULL;
free(c->listening_addr);
c->listening_addr = NULL;
- free(c->mux_ctx);
- c->mux_ctx = NULL;
while ((cc = TAILQ_FIRST(&c->status_confirms)) != NULL) {
if (cc->abandon_cb != NULL)
cc->abandon_cb(ssh, c, cc->ctx);