mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-09 00:00:53 -04:00
tls-peer: Fix parsing of intermediate CA certificates
This commit is contained in:
parent
2e1c0a2776
commit
4c40a3d3f0
@ -469,12 +469,10 @@ static status_t process_certificate(private_tls_peer_t *this,
|
|||||||
{
|
{
|
||||||
if (!certs->read_data16(certs, &data))
|
if (!certs->read_data16(certs, &data))
|
||||||
{
|
{
|
||||||
DBG1(DBG_TLS, "reading extension field of certificate failed",
|
DBG1(DBG_TLS, "failed to read extensions of CertificateEntry");
|
||||||
&data);
|
|
||||||
this->alert->add(this->alert, TLS_FATAL, TLS_DECODE_ERROR);
|
this->alert->add(this->alert, TLS_FATAL, TLS_DECODE_ERROR);
|
||||||
return NEED_MORE;
|
return NEED_MORE;
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
certs->destroy(certs);
|
certs->destroy(certs);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user