changeset 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 306a907d23e7
children 870c63519757
files cli-agentfwd.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 	}