Mercurial > dropbear
comparison cli-agentfwd.c @ 610:3c5f631358a0
Fix check of wrong variable found by Klocwork
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 07 Apr 2011 11:14:22 +0000 |
parents | 12fc5b342dc0 |
children | 1aee049681bd |
comparison
equal
deleted
inserted
replaced
609:306a907d23e7 | 610:3c5f631358a0 |
---|---|
81 | 81 |
82 if (!cli_opts.agent_fwd) | 82 if (!cli_opts.agent_fwd) |
83 return SSH_OPEN_ADMINISTRATIVELY_PROHIBITED; | 83 return SSH_OPEN_ADMINISTRATIVELY_PROHIBITED; |
84 | 84 |
85 fd = connect_agent(); | 85 fd = connect_agent(); |
86 if (cli_opts.agent_fd < 0) { | 86 if (fd < 0) { |
87 return SSH_OPEN_CONNECT_FAILED; | 87 return SSH_OPEN_CONNECT_FAILED; |
88 } | 88 } |
89 | 89 |
90 setnonblocking(fd); | 90 setnonblocking(fd); |
91 | 91 |