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