The unified diff between revisions [8a7db1e2..] and [78d02301..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'cli-authpubkey.c'
#
#
# patch "cli-authpubkey.c"
# from [739dbebaf315d696abe1abb4e0f8aa24a9a04307]
# to [29757c1dd399b76f073054ebc12a904b5ae39ca5]
#
============================================================
--- cli-authpubkey.c 739dbebaf315d696abe1abb4e0f8aa24a9a04307
+++ cli-authpubkey.c 29757c1dd399b76f073054ebc12a904b5ae39ca5
@@ -173,6 +173,13 @@ int cli_auth_pubkey() {
TRACE(("enter cli_auth_pubkey"))
+ if (cli_opts.pubkeys == NULL &&
+ cli_opts.agent_fwd &&
+ !cli_opts.agent_keys_loaded) {
+ /* get the list of available keys from the agent */
+ load_agent_keys(&cli_opts.pubkeys);
+ }
+
if (cli_opts.privkeys != NULL) {
/* Send a trial request */
send_msg_userauth_pubkey(cli_opts.privkeys->key,