Skip to content
Snippets Groups Projects
Commit f4c4ca64 authored by Matt Johnston's avatar Matt Johnston
Browse files

Initialise agent_fd to -1 so we don't end up closing stdin (fd 0)

if public key authentication is disabled
parent 2a02c408
No related merge requests found
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment