tls-peer: Fix parsing of intermediate CA certificates

This commit is contained in:
Tobias Brunner 2020-08-25 16:11:59 +02:00
parent 2e1c0a2776
commit 4c40a3d3f0

View File

@ -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);