Bugzilla – Attachment 2713 Details for
Bug 1773
PKCS#11 authentication fails with "xmalloc: zero size" for some certificates.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix xmalloc error when using pkcs11 for auth for 7.x releases
pkcs11.patch (text/plain), 734 bytes, created by
Sergey Ivanov
on 2015-09-23 21:24:44 AEST
(
hide
)
Description:
Patch to fix xmalloc error when using pkcs11 for auth for 7.x releases
Filename:
MIME Type:
Creator:
Sergey Ivanov
Created:
2015-09-23 21:24:44 AEST
Size:
734 bytes
patch
obsolete
>diff -rupN openssh-7.1p1/ssh-pkcs11.c openssh-7.1p1-fix/ssh-pkcs11.c >--- openssh-7.1p1/ssh-pkcs11.c 2015-08-21 07:49:03.000000000 +0300 >+++ openssh-7.1p1-fix/ssh-pkcs11.c 2015-09-22 22:30:10.472673425 +0300 >@@ -481,12 +481,9 @@ pkcs11_fetch_keys_filter(struct pkcs11_p > error("C_GetAttributeValue failed: %lu", rv); > continue; > } >- /* >- * Allow CKA_ID (always first attribute) to be empty, but >- * ensure that none of the others are zero length. >- * XXX assumes CKA_ID is always first. >- */ >- if (attribs[1].ulValueLen == 0 || >+ /* check that none of the attributes are zero length */ >+ if (attribs[0].ulValueLen == 0 || >+ attribs[1].ulValueLen == 0 || > attribs[2].ulValueLen == 0) { > continue; > }
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:
evasive.gyron
:
ok+
Actions:
View
|
Diff
Attachments on
bug 1773
:
1851
|
2713
|
2714