changeset 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 c519b78b6d1a
children dfdb9d9189ff
files cli-runopts.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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