summaryrefslogtreecommitdiff
path: root/serverloop.c
diff options
context:
space:
mode:
Diffstat (limited to 'serverloop.c')
-rw-r--r--serverloop.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/serverloop.c b/serverloop.c
index b8a5f1608..46b12ee3d 100644
--- a/serverloop.c
+++ b/serverloop.c
@@ -35,7 +35,7 @@
35 */ 35 */
36 36
37#include "includes.h" 37#include "includes.h"
38RCSID("$OpenBSD: serverloop.c,v 1.97 2002/02/03 17:53:25 markus Exp $"); 38RCSID("$OpenBSD: serverloop.c,v 1.98 2002/02/06 14:55:16 markus Exp $");
39 39
40#include "xmalloc.h" 40#include "xmalloc.h"
41#include "packet.h" 41#include "packet.h"
@@ -870,10 +870,6 @@ server_request_direct_tcpip(char *ctype)
870 c = channel_new(ctype, SSH_CHANNEL_CONNECTING, 870 c = channel_new(ctype, SSH_CHANNEL_CONNECTING,
871 sock, sock, -1, CHAN_TCP_WINDOW_DEFAULT, 871 sock, sock, -1, CHAN_TCP_WINDOW_DEFAULT,
872 CHAN_TCP_PACKET_DEFAULT, 0, xstrdup("direct-tcpip"), 1); 872 CHAN_TCP_PACKET_DEFAULT, 0, xstrdup("direct-tcpip"), 1);
873 if (c == NULL) {
874 error("server_request_direct_tcpip: channel_new failed");
875 close(sock);
876 }
877 return c; 873 return c;
878} 874}
879 875
@@ -893,10 +889,6 @@ server_request_session(char *ctype)
893 c = channel_new(ctype, SSH_CHANNEL_LARVAL, 889 c = channel_new(ctype, SSH_CHANNEL_LARVAL,
894 -1, -1, -1, /*window size*/0, CHAN_SES_PACKET_DEFAULT, 890 -1, -1, -1, /*window size*/0, CHAN_SES_PACKET_DEFAULT,
895 0, xstrdup("server-session"), 1); 891 0, xstrdup("server-session"), 1);
896 if (c == NULL) {
897 error("server_request_session: channel_new failed");
898 return NULL;
899 }
900 if (session_open(xxx_authctxt, c->self) != 1) { 892 if (session_open(xxx_authctxt, c->self) != 1) {
901 debug("session open failed, free channel %d", c->self); 893 debug("session open failed, free channel %d", c->self);
902 channel_free(c); 894 channel_free(c);