summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
authormarkus@openbsd.org <markus@openbsd.org>2017-05-26 19:34:12 +0000
committerDamien Miller <djm@mindrot.org>2017-05-27 15:35:52 +1000
commit364f0d5edea27767fb0f915ea7fc61aded88d3e8 (patch)
tree22dcfc570d8025b7502f957fe921f8d7007be914 /channels.c
parent8ba0fd40082751dbbc23a830433488bbfb1abdca (diff)
upstream commit
remove channel_input_close_confirmation (ssh1 only); ok djm@ Upstream-ID: 8e7c8c38f322d255bb0294a5c0ebef53fdf576f1
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/channels.c b/channels.c
index 4092a6710..17dcc195c 100644
--- a/channels.c
+++ b/channels.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: channels.c,v 1.359 2017/04/30 23:28:41 djm Exp $ */ 1/* $OpenBSD: channels.c,v 1.360 2017/05/26 19:34:12 markus 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
@@ -2620,7 +2620,6 @@ channel_input_ieof(int type, u_int32_t seq, void *ctxt)
2620 return 0; 2620 return 0;
2621} 2621}
2622 2622
2623/* proto version 1.5 overloads CLOSE_CONFIRMATION with OCLOSE */
2624/* ARGSUSED */ 2623/* ARGSUSED */
2625int 2624int
2626channel_input_oclose(int type, u_int32_t seq, void *ctxt) 2625channel_input_oclose(int type, u_int32_t seq, void *ctxt)
@@ -2639,26 +2638,6 @@ channel_input_oclose(int type, u_int32_t seq, void *ctxt)
2639 2638
2640/* ARGSUSED */ 2639/* ARGSUSED */
2641int 2640int
2642channel_input_close_confirmation(int type, u_int32_t seq, void *ctxt)
2643{
2644 int id = packet_get_int();
2645 Channel *c = channel_lookup(id);
2646
2647 if (c == NULL)
2648 packet_disconnect("Received close confirmation for "
2649 "out-of-range channel %d.", id);
2650 if (channel_proxy_upstream(c, type, seq, ctxt))
2651 return 0;
2652 packet_check_eom();
2653 if (c->type != SSH_CHANNEL_CLOSED && c->type != SSH_CHANNEL_ABANDONED)
2654 packet_disconnect("Received close confirmation for "
2655 "non-closed channel %d (type %d).", id, c->type);
2656 channel_free(c);
2657 return 0;
2658}
2659
2660/* ARGSUSED */
2661int
2662channel_input_open_confirmation(int type, u_int32_t seq, void *ctxt) 2641channel_input_open_confirmation(int type, u_int32_t seq, void *ctxt)
2663{ 2642{
2664 int id, remote_id; 2643 int id, remote_id;