summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ssh.c b/ssh.c
index 2230edd16..ee224e9ff 100644
--- a/ssh.c
+++ b/ssh.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh.c,v 1.336 2010/04/10 00:00:16 djm Exp $ */ 1/* $OpenBSD: ssh.c,v 1.337 2010/05/14 23:29: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
@@ -1175,12 +1175,15 @@ ssh_session(void)
1175 1175
1176/* request pty/x11/agent/tcpfwd/shell for channel */ 1176/* request pty/x11/agent/tcpfwd/shell for channel */
1177static void 1177static void
1178ssh_session2_setup(int id, void *arg) 1178ssh_session2_setup(int id, int success, void *arg)
1179{ 1179{
1180 extern char **environ; 1180 extern char **environ;
1181 const char *display; 1181 const char *display;
1182 int interactive = tty_flag; 1182 int interactive = tty_flag;
1183 1183
1184 if (!success)
1185 return; /* No need for error message, channels code sens one */
1186
1184 display = getenv("DISPLAY"); 1187 display = getenv("DISPLAY");
1185 if (options.forward_x11 && display != NULL) { 1188 if (options.forward_x11 && display != NULL) {
1186 char *proto, *data; 1189 char *proto, *data;