diff options
Diffstat (limited to 'clientloop.c')
-rw-r--r-- | clientloop.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/clientloop.c b/clientloop.c index 8a40bc71e..edd801440 100644 --- a/clientloop.c +++ b/clientloop.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: clientloop.c,v 1.188 2008/02/22 20:44:02 dtucker Exp $ */ | 1 | /* $OpenBSD: clientloop.c,v 1.189 2008/05/08 12:02:23 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 |
@@ -86,6 +86,7 @@ | |||
86 | #include <pwd.h> | 86 | #include <pwd.h> |
87 | #include <unistd.h> | 87 | #include <unistd.h> |
88 | 88 | ||
89 | #include "openbsd-compat/sys-queue.h" | ||
89 | #include "xmalloc.h" | 90 | #include "xmalloc.h" |
90 | #include "ssh.h" | 91 | #include "ssh.h" |
91 | #include "ssh1.h" | 92 | #include "ssh1.h" |
@@ -700,7 +701,7 @@ client_extra_session2_setup(int id, void *arg) | |||
700 | cctx->term, &cctx->tio, c->rfd, &cctx->cmd, cctx->env, | 701 | cctx->term, &cctx->tio, c->rfd, &cctx->cmd, cctx->env, |
701 | client_subsystem_reply); | 702 | client_subsystem_reply); |
702 | 703 | ||
703 | c->confirm_ctx = NULL; | 704 | c->open_confirm_ctx = NULL; |
704 | buffer_free(&cctx->cmd); | 705 | buffer_free(&cctx->cmd); |
705 | xfree(cctx->term); | 706 | xfree(cctx->term); |
706 | if (cctx->env != NULL) { | 707 | if (cctx->env != NULL) { |
@@ -940,7 +941,8 @@ client_process_control(fd_set *readset) | |||
940 | debug3("%s: channel_new: %d", __func__, c->self); | 941 | debug3("%s: channel_new: %d", __func__, c->self); |
941 | 942 | ||
942 | channel_send_open(c->self); | 943 | channel_send_open(c->self); |
943 | channel_register_confirm(c->self, client_extra_session2_setup, cctx); | 944 | channel_register_open_confirm(c->self, |
945 | client_extra_session2_setup, cctx); | ||
944 | } | 946 | } |
945 | 947 | ||
946 | static void | 948 | static void |
@@ -2068,6 +2070,8 @@ client_init_dispatch_20(void) | |||
2068 | dispatch_set(SSH2_MSG_CHANNEL_OPEN_FAILURE, &channel_input_open_failure); | 2070 | dispatch_set(SSH2_MSG_CHANNEL_OPEN_FAILURE, &channel_input_open_failure); |
2069 | dispatch_set(SSH2_MSG_CHANNEL_REQUEST, &client_input_channel_req); | 2071 | dispatch_set(SSH2_MSG_CHANNEL_REQUEST, &client_input_channel_req); |
2070 | dispatch_set(SSH2_MSG_CHANNEL_WINDOW_ADJUST, &channel_input_window_adjust); | 2072 | dispatch_set(SSH2_MSG_CHANNEL_WINDOW_ADJUST, &channel_input_window_adjust); |
2073 | dispatch_set(SSH2_MSG_CHANNEL_SUCCESS, &channel_input_status_confirm); | ||
2074 | dispatch_set(SSH2_MSG_CHANNEL_FAILURE, &channel_input_status_confirm); | ||
2071 | dispatch_set(SSH2_MSG_GLOBAL_REQUEST, &client_input_global_request); | 2075 | dispatch_set(SSH2_MSG_GLOBAL_REQUEST, &client_input_global_request); |
2072 | 2076 | ||
2073 | /* rekeying */ | 2077 | /* rekeying */ |