Fix check of wrong variable found by Klocwork

--HG--
extra : convert_revision : 6f3b074e83bb808019f49c5aca3451b70f9f1e8f
This commit is contained in:
Matt Johnston 2011-04-07 11:14:22 +00:00
parent 2303d0fd09
commit 3fc6569d46

View File

@ -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;
}