Fixed UB due to debug log side effects not evaluating
This commit is contained in:
parent
7ff88e3fc2
commit
cdfec1c1c6
1 changed files with 2 additions and 2 deletions
|
@ -150,9 +150,9 @@ template<typename Verifier> auto verbose_verify(Verifier&& verifier)
|
|||
char subject_name[256];
|
||||
X509* cert = X509_STORE_CTX_get_current_cert(ctx.native_handle());
|
||||
X509_NAME_oneline(X509_get_subject_name(cert), subject_name, 256);
|
||||
bool verified;
|
||||
bool verified = verifier(preverified, ctx);
|
||||
DBG_NW << "Verifying TLS certificate: " << subject_name << ": " <<
|
||||
((verified = verifier(preverified, ctx)) ? "verified" : "failed") << std::endl;
|
||||
(verified ? "verified" : "failed") << std::endl;
|
||||
return verified;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue