summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2013-04-23 15:19:27 +1000
committerDamien Miller <djm@mindrot.org>2013-04-23 15:19:27 +1000
commit172859cff7df9fd8a29a1f0a4de568f644bbda50 (patch)
treeb08f7c556638ebc9d23f1f05ae674e59689f15b2
parent9f12b5dcd5f7772e633fb2786c63bfcbea1f1aea (diff)
- djm@cvs.openbsd.org 2013/04/05 00:58:51
[mux.c] cleanup mux-created channels that are in SSH_CHANNEL_OPENING state too (in addition to ones already in OPEN); bz#2079, ok dtucker@
-rw-r--r--ChangeLog4
-rw-r--r--mux.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c28e00beb..0bd623b1b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -32,6 +32,10 @@
32 [pathnames.h] 32 [pathnames.h]
33 use the existing _PATH_SSH_USER_RC define to construct the other 33 use the existing _PATH_SSH_USER_RC define to construct the other
34 pathnames; bz#2077, ok dtucker@ (no binary change) 34 pathnames; bz#2077, ok dtucker@ (no binary change)
35 - djm@cvs.openbsd.org 2013/04/05 00:58:51
36 [mux.c]
37 cleanup mux-created channels that are in SSH_CHANNEL_OPENING state too
38 (in addition to ones already in OPEN); bz#2079, ok dtucker@
35 39
3620130418 4020130418
37 - (djm) [config.guess config.sub] Update to last versions before they switch 41 - (djm) [config.guess config.sub] Update to last versions before they switch
diff --git a/mux.c b/mux.c
index 1ae0e0915..9f458c4cf 100644
--- a/mux.c
+++ b/mux.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: mux.c,v 1.38 2013/01/02 00:32:07 djm Exp $ */ 1/* $OpenBSD: mux.c,v 1.39 2013/04/05 00:58:51 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2002-2008 Damien Miller <djm@openbsd.org> 3 * Copyright (c) 2002-2008 Damien Miller <djm@openbsd.org>
4 * 4 *
@@ -219,7 +219,8 @@ mux_master_control_cleanup_cb(int cid, void *unused)
219 __func__, c->self, c->remote_id); 219 __func__, c->self, c->remote_id);
220 c->remote_id = -1; 220 c->remote_id = -1;
221 sc->ctl_chan = -1; 221 sc->ctl_chan = -1;
222 if (sc->type != SSH_CHANNEL_OPEN) { 222 if (sc->type != SSH_CHANNEL_OPEN &&
223 sc->type != SSH_CHANNEL_OPENING) {
223 debug2("%s: channel %d: not open", __func__, sc->self); 224 debug2("%s: channel %d: not open", __func__, sc->self);
224 chan_mark_dead(sc); 225 chan_mark_dead(sc);
225 } else { 226 } else {