# HG changeset patch # User Matt Johnston # Date 1336566895 -28800 # Node ID 1291413c7c7e7bfc22700698d08abcb540910194 # Parent c519b78b6d1a0b38c6901de2b7825378386f4bda Initialise agent_fd to -1 so we don't end up closing stdin (fd 0) if public key authentication is disabled diff -r c519b78b6d1a -r 1291413c7c7e cli-runopts.c --- a/cli-runopts.c Wed May 09 20:33:16 2012 +0800 +++ b/cli-runopts.c Wed May 09 20:34:55 2012 +0800 @@ -140,6 +140,7 @@ #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