diff options
-rw-r--r-- | ssh-vulnkey.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ssh-vulnkey.c b/ssh-vulnkey.c index 60ec7413f..cd4d3ce76 100644 --- a/ssh-vulnkey.c +++ b/ssh-vulnkey.c | |||
@@ -79,9 +79,14 @@ describe_key(const char *filename, u_long linenum, const char *msg, | |||
79 | char *fp; | 79 | char *fp; |
80 | 80 | ||
81 | fp = key_fingerprint(key, SSH_FP_MD5, SSH_FP_HEX); | 81 | fp = key_fingerprint(key, SSH_FP_MD5, SSH_FP_HEX); |
82 | if (verbosity >= min_verbosity) | 82 | if (verbosity >= min_verbosity) { |
83 | printf("%s:%lu: %s: %s %u %s %s\n", filename, linenum, msg, | 83 | if (strchr(filename, ':')) |
84 | printf("\"%s\"", filename); | ||
85 | else | ||
86 | printf("%s", filename); | ||
87 | printf(":%lu: %s: %s %u %s %s\n", linenum, msg, | ||
84 | key_type(key), key_size(key), fp, comment); | 88 | key_type(key), key_size(key), fp, comment); |
89 | } | ||
85 | xfree(fp); | 90 | xfree(fp); |
86 | } | 91 | } |
87 | 92 | ||