diff options
Diffstat (limited to 'ssh.c')
-rw-r--r-- | ssh.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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"); |