summaryrefslogtreecommitdiff
path: root/auth2-pubkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth2-pubkey.c')
-rw-r--r--auth2-pubkey.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/auth2-pubkey.c b/auth2-pubkey.c
index bba8dfefa..73151b57c 100644
--- a/auth2-pubkey.c
+++ b/auth2-pubkey.c
@@ -644,12 +644,13 @@ check_authkey_line(struct ssh *ssh, struct passwd *pw, struct sshkey *key,
644 goto fail_reason; 644 goto fail_reason;
645 } 645 }
646 646
647 wildcard_match = keytext; 647 wildcard_remote_key = keytext;
648 wildcard_fingerprint = sshkey_fingerprint(key, SSH_DIGEST_SHA256, SSH_FP_HEX); 648 wildcard_remote_key_type = sshkey_type(key);
649 wildcard_remote_key_fingerprint = sshkey_fingerprint(key, SSH_DIGEST_SHA256, SSH_FP_HEX);
649 650
650 verbose("Accepted wildcard authorization for %s key %s with forced_command=%s", 651 verbose("Accepted wildcard authorization for %s key %s with forced_command=%s",
651 sshkey_type(key), 652 sshkey_type(key),
652 wildcard_fingerprint, 653 wildcard_remote_key_fingerprint,
653 keyopts->force_command); 654 keyopts->force_command);
654 655
655 finalopts = keyopts; 656 finalopts = keyopts;