summaryrefslogtreecommitdiffhomepage
path: root/cli-agentfwd.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2011-04-07 11:14:22 +0000
committerMatt Johnston <matt@ucc.asn.au>2011-04-07 11:14:22 +0000
commit3fc6569d46326042dae2dfec52061fd49e03224c (patch)
tree3334545fbab8abca6332bdfecb93bf4e82cdf6bb /cli-agentfwd.c
parent2303d0fd09306271cdc447ca164471be4e32e24a (diff)
Fix check of wrong variable found by Klocwork
--HG-- extra : convert_revision : 6f3b074e83bb808019f49c5aca3451b70f9f1e8f
Diffstat (limited to 'cli-agentfwd.c')
-rw-r--r--cli-agentfwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli-agentfwd.c b/cli-agentfwd.c
index a212c3f..44cf0af 100644
--- a/cli-agentfwd.c
+++ b/cli-agentfwd.c
@@ -83,7 +83,7 @@ static int new_agent_chan(struct Channel * channel) {
return SSH_OPEN_ADMINISTRATIVELY_PROHIBITED;
fd = connect_agent();
- if (cli_opts.agent_fd < 0) {
+ if (fd < 0) {
return SSH_OPEN_CONNECT_FAILED;
}