comparison cli-runopts.c @ 674:1291413c7c7e

Initialise agent_fd to -1 so we don't end up closing stdin (fd 0) if public key authentication is disabled
author Matt Johnston <matt@ucc.asn.au>
date Wed, 09 May 2012 20:34:55 +0800
parents a98a2138364a
children 4edea9f363d0
comparison
equal deleted inserted replaced
673:c519b78b6d1a 674:1291413c7c7e
138 #ifdef ENABLE_CLI_REMOTETCPFWD 138 #ifdef ENABLE_CLI_REMOTETCPFWD
139 cli_opts.remotefwds = list_new(); 139 cli_opts.remotefwds = list_new();
140 #endif 140 #endif
141 #ifdef ENABLE_CLI_AGENTFWD 141 #ifdef ENABLE_CLI_AGENTFWD
142 cli_opts.agent_fwd = 0; 142 cli_opts.agent_fwd = 0;
143 cli_opts.agent_fd = -1;
143 cli_opts.agent_keys_loaded = 0; 144 cli_opts.agent_keys_loaded = 0;
144 #endif 145 #endif
145 #ifdef ENABLE_CLI_PROXYCMD 146 #ifdef ENABLE_CLI_PROXYCMD
146 cli_opts.proxycmd = NULL; 147 cli_opts.proxycmd = NULL;
147 #endif 148 #endif