diff options
author | 2003-05-11 20:30:24 +0000 | |
---|---|---|
committer | 2003-05-11 20:30:24 +0000 | |
commit | fe5822e586f89c89575e1903a41725ea84e8cf6e (patch) | |
tree | 0ec93273ee2d724e64c8e6790eca641c906f8468 /usr.bin/ssh/serverloop.c | |
parent | Put the generated asn1 files in the tree, so that the asn1_compile (diff) | |
download | wireguard-openbsd-fe5822e586f89c89575e1903a41725ea84e8cf6e.tar.xz wireguard-openbsd-fe5822e586f89c89575e1903a41725ea84e8cf6e.zip |
make channel_new() strdup the 'remote_name' (not the caller); ok theo
Diffstat (limited to 'usr.bin/ssh/serverloop.c')
-rw-r--r-- | usr.bin/ssh/serverloop.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/serverloop.c b/usr.bin/ssh/serverloop.c index 0e41a7580f3..9c1fbb1baed 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.107 2003/04/02 09:48:07 markus Exp $"); +RCSID("$OpenBSD: serverloop.c,v 1.108 2003/05/11 20:30:24 markus Exp $"); #include "xmalloc.h" #include "packet.h" @@ -878,7 +878,7 @@ server_request_direct_tcpip(char *ctype) return NULL; c = channel_new(ctype, SSH_CHANNEL_CONNECTING, sock, sock, -1, CHAN_TCP_WINDOW_DEFAULT, - CHAN_TCP_PACKET_DEFAULT, 0, xstrdup("direct-tcpip"), 1); + CHAN_TCP_PACKET_DEFAULT, 0, "direct-tcpip", 1); return c; } @@ -897,7 +897,7 @@ server_request_session(char *ctype) */ c = channel_new(ctype, SSH_CHANNEL_LARVAL, -1, -1, -1, /*window size*/0, CHAN_SES_PACKET_DEFAULT, - 0, xstrdup("server-session"), 1); + 0, "server-session", 1); if (session_open(xxx_authctxt, c->self) != 1) { debug("session open failed, free channel %d", c->self); channel_free(c); |