summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ssh.c b/ssh.c
index e2e2ef498..2b55e6397 100644
--- a/ssh.c
+++ b/ssh.c
@@ -1205,7 +1205,8 @@ ssh_session2(void)
1205 id = ssh_session2_open(); 1205 id = ssh_session2_open();
1206 1206
1207 /* If we don't expect to open a new session, then disallow it */ 1207 /* If we don't expect to open a new session, then disallow it */
1208 if (options.control_master == SSHCTL_MASTER_NO) { 1208 if (options.control_master == SSHCTL_MASTER_NO &&
1209 (datafellows & SSH_NEW_OPENSSH)) {
1209 debug("Requesting no-more-sessions@openssh.com"); 1210 debug("Requesting no-more-sessions@openssh.com");
1210 packet_start(SSH2_MSG_GLOBAL_REQUEST); 1211 packet_start(SSH2_MSG_GLOBAL_REQUEST);
1211 packet_put_cstring("no-more-sessions@openssh.com"); 1212 packet_put_cstring("no-more-sessions@openssh.com");