diff 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
line wrap: on
line diff
--- 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