diff cli-authpubkey.c @ 550:61c3513825b0 agent-client

Talking to the agent works now. Can't interpret the pubkeys.
author Matt Johnston <matt@ucc.asn.au>
date Wed, 01 Jul 2009 06:27:27 +0000
parents cf376c696dfc
children c3f2ec71e3d4
line wrap: on
line diff
--- a/cli-authpubkey.c	Wed Jul 01 04:53:17 2009 +0000
+++ b/cli-authpubkey.c	Wed Jul 01 06:27:27 2009 +0000
@@ -174,11 +174,11 @@
 
 	TRACE(("enter cli_auth_pubkey"))
 
-	if (cli_opts.privkeys == NULL && 
-			cli_opts.agent_fwd &&
+	if (cli_opts.agent_fwd &&
 			!cli_opts.agent_keys_loaded) {
 		/* get the list of available keys from the agent */
 		load_agent_keys(&cli_opts.privkeys);
+		cli_opts.agent_keys_loaded = 1;
 	}
 
 	if (cli_opts.privkeys != NULL) {