handle case where subject = NULL but keyid is set
This commit is contained in:
1 parent
81ce0cf67e
commit
e4f554404e
1 file changed
+2
-1
+2
-1
@@ -219,7 +219,8 @@ cert_t* get_authcert(identification_t *subject, chunk_t keyid,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* compare the subjectDistinguishedNames */
|
/* compare the subjectDistinguishedNames */
|
||||||
if (!certificate->has_subject(certificate, subject))
|
if (!(subject && certificate->has_subject(certificate, subject)) &&
|
||||||
|
(subject || !keyid.ptr))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user