summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/serverloop.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2000-12-05 20:34:09 +0000
committermarkus <markus@openbsd.org>2000-12-05 20:34:09 +0000
commit8d404a1ee64457d29dd073e32b238b3b0e603410 (patch)
tree4fa4c1c9786229b8f86bfe207eade547a5a4c4c8 /usr.bin/ssh/serverloop.c
parentasprintf can safe time doing character counts (diff)
downloadwireguard-openbsd-8d404a1ee64457d29dd073e32b238b3b0e603410.tar.xz
wireguard-openbsd-8d404a1ee64457d29dd073e32b238b3b0e603410.zip
async connects for -R/-L; ok deraadt@
Diffstat (limited to 'usr.bin/ssh/serverloop.c')
-rw-r--r--usr.bin/ssh/serverloop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/serverloop.c b/usr.bin/ssh/serverloop.c
index 45999d318de..169e95ba72c 100644
--- a/usr.bin/ssh/serverloop.c
+++ b/usr.bin/ssh/serverloop.c
@@ -35,7 +35,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: serverloop.c,v 1.35 2000/11/06 23:04:56 markus Exp $");
+RCSID("$OpenBSD: serverloop.c,v 1.36 2000/12/05 20:34:10 markus Exp $");
#include "xmalloc.h"
#include "ssh.h"
@@ -748,7 +748,7 @@ server_request_direct_tcpip(char *ctype)
xfree(originator);
if (sock < 0)
return NULL;
- newch = channel_new(ctype, SSH_CHANNEL_OPEN,
+ newch = channel_new(ctype, SSH_CHANNEL_CONNECTING,
sock, sock, -1, CHAN_TCP_WINDOW_DEFAULT,
CHAN_TCP_PACKET_DEFAULT, 0, xstrdup("direct-tcpip"), 1);
return (newch >= 0) ? channel_lookup(newch) : NULL;