summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ssh.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/ssh.c b/ssh.c
index a9903b6f9..d9a9d1136 100644
--- a/ssh.c
+++ b/ssh.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh.c,v 1.503 2019/06/12 11:31:50 jmc Exp $ */ 1/* $OpenBSD: ssh.c,v 1.504 2019/06/14 04:13:58 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
@@ -790,8 +790,11 @@ main(int ac, char **av)
790#endif 790#endif
791 break; 791 break;
792 case 'J': 792 case 'J':
793 if (options.jump_host != NULL) 793 if (options.jump_host != NULL) {
794 fatal("Only a single -J option permitted"); 794 fatal("Only a single -J option is permitted "
795 "(use commas to separate multiple "
796 "jump hops)");
797 }
795 if (options.proxy_command != NULL) 798 if (options.proxy_command != NULL)
796 fatal("Cannot specify -J with ProxyCommand"); 799 fatal("Cannot specify -J with ProxyCommand");
797 if (parse_jump(optarg, &options, 1) == -1) 800 if (parse_jump(optarg, &options, 1) == -1)