We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68ec5bf commit 6e090acCopy full SHA for 6e090ac
1 file changed
src/crypto/OCSP.cpp
@@ -92,6 +92,8 @@ OCSP::OCSP(const X509Cert &cert, const X509Cert &issuer, const std::string &user
92
THROW("Failed to send OCSP request");
93
const auto *p2 = (const unsigned char*)result.content.c_str();
94
resp.reset(d2i_OCSP_RESPONSE(nullptr, &p2, long(result.content.size())));
95
+ if(!resp)
96
+ THROW_OPENSSLEXCEPTION("Failed to parse OCSP response.");
97
98
switch(int respStatus = OCSP_response_status(resp.get()))
99
{
0 commit comments