# HG changeset patch # User Matt Johnston # Date 1302174862 0 # Node ID 3c5f631358a00994b1de9bfd9a82508a8acc6a8b # Parent 306a907d23e7dce13ff7b130d2aeb3655da163fd Fix check of wrong variable found by Klocwork diff -r 306a907d23e7 -r 3c5f631358a0 cli-agentfwd.c --- a/cli-agentfwd.c Thu Mar 31 14:42:11 2011 +0000 +++ b/cli-agentfwd.c Thu Apr 07 11:14:22 2011 +0000 @@ -83,7 +83,7 @@ return SSH_OPEN_ADMINISTRATIVELY_PROHIBITED; fd = connect_agent(); - if (cli_opts.agent_fd < 0) { + if (fd < 0) { return SSH_OPEN_CONNECT_FAILED; }