summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c28
1 files changed, 9 insertions, 19 deletions
diff --git a/ssh.c b/ssh.c
index 13f384a92..5aa5dcc89 100644
--- a/ssh.c
+++ b/ssh.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh.c,v 1.382 2013/10/14 22:22:04 djm Exp $ */ 1/* $OpenBSD: ssh.c,v 1.383 2013/10/14 23:28: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
@@ -723,6 +723,14 @@ main(int ac, char **av)
723 723
724 channel_set_af(options.address_family); 724 channel_set_af(options.address_family);
725 725
726 /* Tidy and check options */
727 if (options.host_key_alias != NULL)
728 lowercase(options.host_key_alias);
729 if (options.proxy_command != NULL &&
730 strcmp(options.proxy_command, "-") == 0 &&
731 options.proxy_use_fdpass)
732 fatal("ProxyCommand=- and ProxyUseFDPass are incompatible");
733
726 /* reinit */ 734 /* reinit */
727 log_init(argv0, options.log_level, SYSLOG_FACILITY_USER, !use_syslog); 735 log_init(argv0, options.log_level, SYSLOG_FACILITY_USER, !use_syslog);
728 736
@@ -779,24 +787,6 @@ main(int ac, char **av)
779 free(cp); 787 free(cp);
780 } 788 }
781 789
782 /* force lowercase for hostkey matching */
783 if (options.host_key_alias != NULL) {
784 for (p = options.host_key_alias; *p; p++)
785 if (isupper(*p))
786 *p = (char)tolower(*p);
787 }
788
789 if (options.proxy_command != NULL &&
790 strcmp(options.proxy_command, "none") == 0) {
791 free(options.proxy_command);
792 options.proxy_command = NULL;
793 }
794 if (options.control_path != NULL &&
795 strcmp(options.control_path, "none") == 0) {
796 free(options.control_path);
797 options.control_path = NULL;
798 }
799
800 if (options.control_path != NULL) { 790 if (options.control_path != NULL) {
801 cp = tilde_expand_filename(options.control_path, 791 cp = tilde_expand_filename(options.control_path,
802 original_real_uid); 792 original_real_uid);