chore: SecureSocket, add missing nullptr replacement

This commit is contained in:
sithlord48
2025-05-01 11:19:15 -04:00
committed by Nick Bolton
parent 35b4749627
commit e87c596fbe

View File

@ -547,7 +547,7 @@ bool SecureSocket::showCertificate() const
// get the server's certificate
cert = SSL_get_peer_certificate(m_ssl->m_ssl);
if (cert != nullptr) {
line = X509_NAME_oneline(X509_get_subject_name(cert), 0, 0);
line = X509_NAME_oneline(X509_get_subject_name(cert), nullptr, 0);
LOG((CLOG_INFO "server tls certificate info: %s", line));
OPENSSL_free(line);
X509_free(cert);