summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/ssh.c b/ssh.c
index 3bcca53ee..e3737bb9c 100644
--- a/ssh.c
+++ b/ssh.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh.c,v 1.313 2008/05/09 14:26:08 djm Exp $ */ 1/* $OpenBSD: ssh.c,v 1.314 2008/06/10 22:15: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
@@ -1151,6 +1151,15 @@ ssh_session2(void)
1151 if (!no_shell_flag || (datafellows & SSH_BUG_DUMMYCHAN)) 1151 if (!no_shell_flag || (datafellows & SSH_BUG_DUMMYCHAN))
1152 id = ssh_session2_open(); 1152 id = ssh_session2_open();
1153 1153
1154 /* If we don't expect to open a new session, then disallow it */
1155 if (options.control_master == SSHCTL_MASTER_NO) {
1156 debug("Requesting no-more-sessions@openssh.com");
1157 packet_start(SSH2_MSG_GLOBAL_REQUEST);
1158 packet_put_cstring("no-more-sessions@openssh.com");
1159 packet_put_char(0);
1160 packet_send();
1161 }
1162
1154 /* Execute a local command */ 1163 /* Execute a local command */
1155 if (options.local_command != NULL && 1164 if (options.local_command != NULL &&
1156 options.permit_local_command) 1165 options.permit_local_command)