summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2009-01-28 16:22:34 +1100
committerDamien Miller <djm@mindrot.org>2009-01-28 16:22:34 +1100
commit7a60621d13de221d3de77784ea14baf72e0233f4 (patch)
tree0f8cd289b53ba5aa9dabe724aa068a08deeeb42e /channels.c
parent17819015f0debf7dc6a4e908b6e830ff105e4685 (diff)
- djm@cvs.openbsd.org 2009/01/01 21:14:35
[channels.c] call channel destroy callbacks on receipt of open failure messages. fixes client hangs when connecting to a server that has MaxSessions=0 set spotted by imorgan AT nas.nasa.gov; ok markus@
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/channels.c b/channels.c
index c0d335921..d138882b3 100644
--- a/channels.c
+++ b/channels.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: channels.c,v 1.290 2008/12/09 03:20:42 stevesk Exp $ */ 1/* $OpenBSD: channels.c,v 1.291 2009/01/01 21:14:35 djm 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
@@ -2311,8 +2311,8 @@ channel_input_open_failure(int type, u_int32_t seq, void *ctxt)
2311 xfree(lang); 2311 xfree(lang);
2312 } 2312 }
2313 packet_check_eom(); 2313 packet_check_eom();
2314 /* Free the channel. This will also close the socket. */ 2314 /* Schedule the channel for cleanup/deletion. */
2315 channel_free(c); 2315 chan_mark_dead(c);
2316} 2316}
2317 2317
2318/* ARGSUSED */ 2318/* ARGSUSED */