diff options
-rw-r--r-- | ssh.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh.c,v 1.525 2020/04/03 04:06:26 djm Exp $ */ | 1 | /* $OpenBSD: ssh.c,v 1.526 2020/04/03 06:07:57 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 |
@@ -1543,6 +1543,7 @@ main(int ac, char **av) | |||
1543 | } | 1543 | } |
1544 | 1544 | ||
1545 | if (options.forward_agent && options.forward_agent_sock_path != NULL) { | 1545 | if (options.forward_agent && options.forward_agent_sock_path != NULL) { |
1546 | cp = options.forward_agent_sock_path; | ||
1546 | if (cp[0] == '$') { | 1547 | if (cp[0] == '$') { |
1547 | if (!valid_env_name(cp + 1)) { | 1548 | if (!valid_env_name(cp + 1)) { |
1548 | fatal("Invalid ForwardAgent environment variable name %s", cp); | 1549 | fatal("Invalid ForwardAgent environment variable name %s", cp); |