Bugzilla – Attachment 3008 Details for
Bug 2738
UpdateHostKeys does not check keys in secondary known_hosts files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
fix-UpdateHostKeys-use-all-known_hosts.diff (text/plain), 817 bytes, created by
Jaap Eldering
on 2017-07-06 15:56:20 AEST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Jaap Eldering
Created:
2017-07-06 15:56:20 AEST
Size:
817 bytes
patch
obsolete
>--- openssh-7.4p1.orig/clientloop.c >+++ openssh-7.4p1/clientloop.c >@@ -2498,11 +2498,13 @@ client_input_hostkeys(void) > options.check_host_ip ? &ctx->ip_str : NULL); > > /* Find which keys we already know about. */ >- if ((r = hostkeys_foreach(options.user_hostfiles[0], hostkeys_find, >- ctx, ctx->host_str, ctx->ip_str, >- HKF_WANT_PARSE_KEY|HKF_WANT_MATCH)) != 0) { >- error("%s: hostkeys_foreach failed: %s", __func__, ssh_err(r)); >- goto out; >+ for (i = 0; i < options.num_user_hostfiles; i++) { >+ if ((r = hostkeys_foreach(options.user_hostfiles[i], hostkeys_find, >+ ctx, ctx->host_str, ctx->ip_str, >+ HKF_WANT_PARSE_KEY|HKF_WANT_MATCH)) != 0) { >+ error("%s: hostkeys_foreach failed: %s", __func__, ssh_err(r)); >+ goto out; >+ } > } > > /* Figure out if we have any new keys to add */
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
Actions:
View
|
Diff
Attachments on
bug 2738
:
3008
|
3349