summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2004-07-17 16:12:08 +1000
committerDarren Tucker <dtucker@zip.com.au>2004-07-17 16:12:08 +1000
commitfc9597034b819b295966f61d8dc797b53fda45c7 (patch)
treea5a9b7afc50720d7b6f89a4ae1f211abbff89f47 /channels.c
parentba6de952a00558e6d93b8c9edd81806a99716411 (diff)
- deraadt@cvs.openbsd.org 2004/07/11 17:48:47
[channels.c cipher.c clientloop.c clientloop.h compat.h moduli.c readconf.c nchan.c pathnames.h progressmeter.c readconf.h servconf.c session.c sftp-client.c sftp.c ssh-agent.1 ssh-keygen.c ssh.c ssh1.h sshd.c ttymodes.h] spaces
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/channels.c b/channels.c
index a72d9b93d..cf46ce09f 100644
--- a/channels.c
+++ b/channels.c
@@ -39,7 +39,7 @@
39 */ 39 */
40 40
41#include "includes.h" 41#include "includes.h"
42RCSID("$OpenBSD: channels.c,v 1.207 2004/06/21 17:36:31 avsm Exp $"); 42RCSID("$OpenBSD: channels.c,v 1.208 2004/07/11 17:48:47 deraadt Exp $");
43 43
44#include "ssh.h" 44#include "ssh.h"
45#include "ssh1.h" 45#include "ssh1.h"
@@ -737,7 +737,7 @@ channel_pre_open(Channel *c, fd_set * readset, fd_set * writeset)
737 FD_SET(c->efd, readset); 737 FD_SET(c->efd, readset);
738 } 738 }
739 /* XXX: What about efd? races? */ 739 /* XXX: What about efd? races? */
740 if (compat20 && c->ctl_fd != -1 && 740 if (compat20 && c->ctl_fd != -1 &&
741 c->istate == CHAN_INPUT_OPEN && c->ostate == CHAN_OUTPUT_OPEN) 741 c->istate == CHAN_INPUT_OPEN && c->ostate == CHAN_OUTPUT_OPEN)
742 FD_SET(c->ctl_fd, readset); 742 FD_SET(c->ctl_fd, readset);
743} 743}
@@ -2277,7 +2277,7 @@ channel_cancel_rport_listener(const char *host, u_short port)
2277 2277
2278 if (c != NULL && c->type == SSH_CHANNEL_RPORT_LISTENER && 2278 if (c != NULL && c->type == SSH_CHANNEL_RPORT_LISTENER &&
2279 strncmp(c->path, host, sizeof(c->path)) == 0 && 2279 strncmp(c->path, host, sizeof(c->path)) == 0 &&
2280 c->listening_port == port) { 2280 c->listening_port == port) {
2281 debug2("%s: close clannel %d", __func__, i); 2281 debug2("%s: close clannel %d", __func__, i);
2282 channel_free(c); 2282 channel_free(c);
2283 found = 1; 2283 found = 1;
@@ -2364,10 +2364,9 @@ channel_request_remote_forwarding(u_short listen_port,
2364} 2364}
2365 2365
2366/* 2366/*
2367 * Request cancellation of remote forwarding of connection host:port from 2367 * Request cancellation of remote forwarding of connection host:port from
2368 * local side. 2368 * local side.
2369 */ 2369 */
2370
2371void 2370void
2372channel_request_rforward_cancel(u_short port) 2371channel_request_rforward_cancel(u_short port)
2373{ 2372{
@@ -2378,7 +2377,7 @@ channel_request_rforward_cancel(u_short port)
2378 return; 2377 return;
2379 2378
2380 for (i = 0; i < num_permitted_opens; i++) { 2379 for (i = 0; i < num_permitted_opens; i++) {
2381 if (permitted_opens[i].host_to_connect != NULL && 2380 if (permitted_opens[i].host_to_connect != NULL &&
2382 permitted_opens[i].listen_port == port) 2381 permitted_opens[i].listen_port == port)
2383 break; 2382 break;
2384 } 2383 }