summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2016-01-14 11:02:58 +1100
committerDamien Miller <djm@mindrot.org>2016-01-14 12:10:43 +1100
commit6b33763242c063e4e0593877e835eeb1fd1b60aa (patch)
tree683a89d82f9d4d897ffe0ffe5d08b21bcd614f95
parent34d364f0d2e1e30a444009f0e04299bb7c94ba13 (diff)
forcibly disable roaming support in the client
-rw-r--r--readconf.c5
-rw-r--r--ssh.c3
2 files changed, 2 insertions, 6 deletions
diff --git a/readconf.c b/readconf.c
index 1d03bdf72..cd014821a 100644
--- a/readconf.c
+++ b/readconf.c
@@ -1660,7 +1660,7 @@ initialize_options(Options * options)
1660 options->tun_remote = -1; 1660 options->tun_remote = -1;
1661 options->local_command = NULL; 1661 options->local_command = NULL;
1662 options->permit_local_command = -1; 1662 options->permit_local_command = -1;
1663 options->use_roaming = -1; 1663 options->use_roaming = 0;
1664 options->visual_host_key = -1; 1664 options->visual_host_key = -1;
1665 options->ip_qos_interactive = -1; 1665 options->ip_qos_interactive = -1;
1666 options->ip_qos_bulk = -1; 1666 options->ip_qos_bulk = -1;
@@ -1833,8 +1833,7 @@ fill_default_options(Options * options)
1833 options->tun_remote = SSH_TUNID_ANY; 1833 options->tun_remote = SSH_TUNID_ANY;
1834 if (options->permit_local_command == -1) 1834 if (options->permit_local_command == -1)
1835 options->permit_local_command = 0; 1835 options->permit_local_command = 0;
1836 if (options->use_roaming == -1) 1836 options->use_roaming = 0;
1837 options->use_roaming = 1;
1838 if (options->visual_host_key == -1) 1837 if (options->visual_host_key == -1)
1839 options->visual_host_key = 0; 1838 options->visual_host_key = 0;
1840 if (options->ip_qos_interactive == -1) 1839 if (options->ip_qos_interactive == -1)
diff --git a/ssh.c b/ssh.c
index 59c1f931c..67c1ebfa2 100644
--- a/ssh.c
+++ b/ssh.c
@@ -1932,9 +1932,6 @@ ssh_session2(void)
1932 fork_postauth(); 1932 fork_postauth();
1933 } 1933 }
1934 1934
1935 if (options.use_roaming)
1936 request_roaming();
1937
1938 return client_loop(tty_flag, tty_flag ? 1935 return client_loop(tty_flag, tty_flag ?
1939 options.escape_char : SSH_ESCAPECHAR_NONE, id); 1936 options.escape_char : SSH_ESCAPECHAR_NONE, id);
1940} 1937}