Skip to content
Snippets Groups Projects
Commit eb67d2fc authored by Simon Zeni's avatar Simon Zeni Committed by Guillaume Roguez
Browse files

fix pinCertificate infinite loop

This fix the infinite loop at the call of the function
pinCertificate using a vector<uint8_t> as an argment

Change-Id: Ifc30c925e85d745dea3d76066dd547065cd0760d
Tuleap: #861
parent 88405c00
Branches
Tags
No related merge requests found
......@@ -228,7 +228,7 @@ CertificateStore::pinCertificate(const std::vector<uint8_t>& cert,
bool local) noexcept
{
try {
return pinCertificate(cert, local);
return pinCertificate(crypto::Certificate(cert), local);
} catch (const std::exception& e) {}
return {};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment