Bugzilla – Attachment 3556 Details for
Bug 3367
ssh-keyscan with non-22 port does not hash correct host
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
pass the fuill [host]:port for hashing
bz3367.diff (text/plain), 481 bytes, created by
Damien Miller
on 2021-12-03 10:41:04 AEDT
(
hide
)
Description:
pass the fuill [host]:port for hashing
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2021-12-03 10:41:04 AEDT
Size:
481 bytes
patch
obsolete
>diff --git a/ssh-keyscan.c b/ssh-keyscan.c >index e3acfe0..9349523 100644 >--- a/ssh-keyscan.c >+++ b/ssh-keyscan.c >@@ -299,7 +299,7 @@ keyprint_one(const char *host, struct sshkey *key) > > hostport = put_host_port(host, ssh_port); > lowercase(hostport); >- if (hash_hosts && (hashed = host_hash(host, NULL, 0)) == NULL) >+ if (hash_hosts && (hashed = host_hash(hostport, NULL, 0)) == NULL) > fatal("host_hash failed"); > known_host = hash_hosts ? hashed : hostport; > if (!get_cert)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
dtucker
:
ok+
Actions:
View
|
Diff
Attachments on
bug 3367
: 3556