summaryrefslogtreecommitdiffhomepage
path: root/cli-authpubkey.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2009-07-01 06:27:27 +0000
committerMatt Johnston <matt@ucc.asn.au>2009-07-01 06:27:27 +0000
commit9dc9aff0164ba777ae9806e9608af09aaf1a786e (patch)
tree28b3c29b7ff1ffbd2c9d5efb08e0404f35276088 /cli-authpubkey.c
parentc6582dbe370705270e6164ff8212dbdddafd9250 (diff)
Talking to the agent works now. Can't interpret the pubkeys.
--HG-- branch : agent-client extra : convert_revision : 357373f28e889108178b8627480fd24bc26dcbd7
Diffstat (limited to 'cli-authpubkey.c')
-rw-r--r--cli-authpubkey.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli-authpubkey.c b/cli-authpubkey.c
index b314edc..b7ecd55 100644
--- a/cli-authpubkey.c
+++ b/cli-authpubkey.c
@@ -174,11 +174,11 @@ int cli_auth_pubkey() {
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) {