From 648f813f8c89e6e7d0ed5bda2c2149bee2babb09 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 22 Jul 2022 18:33:38 +0100 Subject: Switch from NULL to nullptr. --- src/modules/m_sslinfo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_sslinfo.cpp') diff --git a/src/modules/m_sslinfo.cpp b/src/modules/m_sslinfo.cpp index 4ee937496..7a4601289 100644 --- a/src/modules/m_sslinfo.cpp +++ b/src/modules/m_sslinfo.cpp @@ -141,11 +141,11 @@ public: LocalUser* luser = IS_LOCAL(user); if (!luser || nosslext.Get(luser)) - return NULL; + return nullptr; cert = SSLClientCert::GetCertificate(&luser->eh); if (!cert) - return NULL; + return nullptr; SetCertificate(user, cert); return cert; @@ -402,7 +402,7 @@ public: ModResult OnSetConnectClass(LocalUser* user, ConnectClass::Ptr myclass) override { ssl_cert* cert = cmd.sslapi.GetCertificate(user); - const char* error = NULL; + const char* error = nullptr; const std::string requiressl = myclass->config->getString("requiressl"); if (stdalgo::string::equalsci(requiressl, "trusted")) { -- cgit v1.3.1-10-gc9f91