diff options
author | Matt Johnston <matt@ucc.asn.au> | 2012-05-09 20:34:55 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2012-05-09 20:34:55 +0800 |
commit | f4c4ca64a827661a392749a0684e59ba1556447e (patch) | |
tree | e7981059efa1383086cbb5e005944fca571e042a /cli-runopts.c | |
parent | 2a02c4084afb7413c02c728d766fc0af8f4c7083 (diff) |
Initialise agent_fd to -1 so we don't end up closing stdin (fd 0)
if public key authentication is disabled
Diffstat (limited to 'cli-runopts.c')
-rw-r--r-- | cli-runopts.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cli-runopts.c b/cli-runopts.c index 3f18263..44d2b24 100644 --- a/cli-runopts.c +++ b/cli-runopts.c @@ -140,6 +140,7 @@ void cli_getopts(int argc, char ** argv) { #endif #ifdef ENABLE_CLI_AGENTFWD cli_opts.agent_fwd = 0; + cli_opts.agent_fd = -1; cli_opts.agent_keys_loaded = 0; #endif #ifdef ENABLE_CLI_PROXYCMD |