summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--channels.c23
-rw-r--r--channels.h3
2 files changed, 2 insertions, 24 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;
diff --git a/channels.h b/channels.h
index 4e9b77de1..cdde30155 100644
--- a/channels.h
+++ b/channels.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: channels.h,v 1.123 2017/04/30 23:28:41 djm Exp $ */ 1/* $OpenBSD: channels.h,v 1.124 2017/05/26 19:34:12 markus Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -238,7 +238,6 @@ int channel_proxy_upstream(Channel *, int, u_int32_t, void *);
238 238
239/* protocol handler */ 239/* protocol handler */
240 240
241int channel_input_close_confirmation(int, u_int32_t, void *);
242int channel_input_data(int, u_int32_t, void *); 241int channel_input_data(int, u_int32_t, void *);
243int channel_input_extended_data(int, u_int32_t, void *); 242int channel_input_extended_data(int, u_int32_t, void *);
244int channel_input_ieof(int, u_int32_t, void *); 243int channel_input_ieof(int, u_int32_t, void *);