mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-04 00:00:14 -04:00
x509: Make sure the status in OCSP responses has the correct length
This commit is contained in:
parent
ebf5afcefa
commit
9c4846cdbe
@ -827,6 +827,10 @@ static bool parse_OCSPResponse(private_x509_ocsp_response_t *this)
|
||||
switch (objectID)
|
||||
{
|
||||
case OCSP_RESPONSE_STATUS:
|
||||
if (object.len != 1)
|
||||
{
|
||||
goto end;
|
||||
}
|
||||
this->ocsp_status = (ocsp_status_t)*object.ptr;
|
||||
switch (this->ocsp_status)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user