From 8dfea307301ff2cad2c2442588c589dc5d2c326f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 7 Jan 2022 17:20:33 +0000 Subject: Fix ssl_openssl on OpenSSL 1.0. --- src/modules/extra/m_ssl_openssl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp index 57af1316d..5a317ad45 100644 --- a/src/modules/extra/m_ssl_openssl.cpp +++ b/src/modules/extra/m_ssl_openssl.cpp @@ -682,7 +682,7 @@ class OpenSSLIOHook : public SSLIOHook X509_free(cert); } - static void GetDNString(const X509_NAME* x509name, std::string& out) + static void GetDNString(X509_NAME* x509name, std::string& out) { char buf[512]; X509_NAME_oneline(x509name, buf, sizeof(buf)); -- cgit v1.3.1-10-gc9f91 From ec37d6bb313f1c15df000fc635e0f2693209ddc7 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 12 Jan 2022 17:45:40 +0000 Subject: Fix accessing the /stats/general and /stats/users sub-routes. --- src/modules/m_httpd_stats.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp index 1c8b80dbe..f0b8ce5e6 100644 --- a/src/modules/m_httpd_stats.cpp +++ b/src/modules/m_httpd_stats.cpp @@ -425,7 +425,7 @@ class ModuleHttpStats : public Module, public HTTPRequestEventListener ModResult HandleRequest(HTTPRequest* http) { - if (http->GetPath() != "/stats") + if (http->GetPath().compare(0, 6, "/stats")) return MOD_RES_PASSTHRU; ServerInstance->Logs->Log(MODNAME, LOG_DEBUG, "Handling HTTP request for %s", http->GetPath().c_str()); -- cgit v1.3.1-10-gc9f91