x509: Fix leak if a certificate contains multiple authorityKeyIdentifiers

This commit is contained in:
Tobias Brunner
2017-05-23 18:29:11 +02:00
parent 157742be7d
commit 5e37f7e550
@@ -1461,6 +1461,7 @@ static bool parse_certificate(private_x509_cert_t *this)
}
break;
case OID_AUTHORITY_KEY_ID:
chunk_free(&this->authKeyIdentifier);
this->authKeyIdentifier = x509_parse_authorityKeyIdentifier(
object, level, &this->authKeySerialNumber);
break;