Bugzilla – Attachment 2952 Details for
Bug 2686
SSHD segfaults when trying to load RSA1 host keys
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
possible patch
file_2686.txt (text/plain), 755 bytes, created by
Jakub Jelen
on 2017-03-02 03:46:53 AEDT
(
hide
)
Description:
possible patch
Filename:
MIME Type:
Creator:
Jakub Jelen
Created:
2017-03-02 03:46:53 AEDT
Size:
755 bytes
patch
obsolete
>diff --git a/sshd.c b/sshd.c >index 7e9dd01..5ae7d57 100644 >--- a/sshd.c >+++ b/sshd.c >@@ -689,7 +689,7 @@ list_hostkey_types(void) > { > Buffer b; > const char *p; >- char *ret; >+ char *ret, *keystr; > int i; > Key *key; > >@@ -701,10 +701,11 @@ list_hostkey_types(void) > if (key == NULL) > continue; > /* Check that the key is accepted in HostkeyAlgorithms */ >- if (match_pattern_list(sshkey_ssh_name(key), >+ keystr = sshkey_ssh_name(key); >+ if (keystr == NULL || match_pattern_list(keystr, > options.hostkeyalgorithms, 0) != 1) { > debug3("%s: %s key not permitted by HostkeyAlgorithms", >- __func__, sshkey_ssh_name(key)); >+ __func__, keystr ? keystr : "rsa1"); > continue; > } > switch (key->type) {
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 2686
:
2952
|
2963